public
Description: Not scaffolding. Resourcing. Creates extremely customizable resource controllers with one line of code.
Clone URL: git://github.com/jnewland/resource_this.git
add generator

git-svn-id: 
http://jnewland.com/svn/public/ruby/rails/plugins/resource_this@35 
9b6b69f6-dd27-0410-8144-a0f3c56a22ea
jnewland (author)
Mon Sep 17 05:32:49 -0700 2007
commit  cb521ed911b76bd568a2200d5f1700d251fc906c
tree    efb160741e61ab83cc75a53903d2bc40993d6ee9
parent  35b09f7c71949847ad0ae5470e3fb6dc5f708613
0
...
130
131
132
 
 
133
134
135
...
130
131
132
133
134
135
136
137
0
@@ -130,6 +130,8 @@ This generates a very similar controller to the one above with adjusted redirect
0
   
0
 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.
0
 
0
+A resource_this generator is included - does the same thing as the 'resource' generator but adds 'resource_this' to the generated controller.
0
+
0
 Questions? Comments? Flames? Patches?
0
 ===========
0
 jnewland@gmail.com

Comments

    No one has commented yet.