Links
Twitter
Flickr
« Guardian's 24 hours in pictures | Main | Edge Rails »
Sunday
Nov112007

Rails: resources_controller plugin

Learning about this Rails plugin at the moment.

http://plugins.ardes.com/doc/resources_controller/

Quickly, it can replace the scaffolded controller code.


script/generate scaffold Page title:string body:text


then strip out all the code from app/controllers/PagesController and stick in:

resources_controller_for :pages

Yay, less code. It does more and I'll let you know about that soon.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>