Skip to content

Commit

Permalink
add generator
Browse files Browse the repository at this point in the history
git-svn-id: http://jnewland.com/svn/public/ruby/rails/plugins/resource_this@35 9b6b69f6-dd27-0410-8144-a0f3c56a22ea
  • Loading branch information
jnewland committed Sep 17, 2007
1 parent 35b09f7 commit cb521ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README
Expand Up @@ -130,6 +130,8 @@ This generates a very similar controller to the one above with adjusted redirect

The separation of logic - DB operations in before_filters, rendering in the standard resource controller methods - makes this approach rediculously easy to customize. Need to load an additional object for the :show action? Slap another before_filter on it. Need to change the path that the :update action redirects to? Override the :update action with your new rendering behavior.

A resource_this generator is included - does the same thing as the 'resource' generator but adds 'resource_this' to the generated controller.

Questions? Comments? Flames? Patches?
===========
jnewland@gmail.com
Expand Down

0 comments on commit cb521ed

Please sign in to comment.