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

git-svn-id: 
http://jnewland.com/svn/public/ruby/rails/plugins/resource_this@41 
9b6b69f6-dd27-0410-8144-a0f3c56a22ea
jnewland (author)
Fri Sep 21 06:30:32 -0700 2007
commit  9788da3a0993a7854474cd16d583bc536da70947
tree    c10b88043b0aa798724840df4213f2c8126defa9
parent  fbcb2498927fc89cc97b9983f5d06d5f6ed0ff84
...
1
2
 
...
1
2
3
0
@@ -1,3 +1,4 @@
0
 * Added resource_this generator
0
 * Add support for :path_prefix options on resource_this. Useful for admin namespaced controllers
0
+* wrap some before_filtes in returning true { ... } do
0
...
27
28
29
30
31
 
 
 
 
32
33
34
35
 
 
 
36
37
38
...
27
28
29
 
 
30
31
32
33
34
35
36
 
37
38
39
40
41
42
0
@@ -27,12 +27,16 @@
0
     end
0
   
0
     def create_post
0
- @post = Post.new(params[:post])
0
- @created = @post.save
0
+ returning true do
0
+ @post = Post.new(params[:post])
0
+ @created = @post.save
0
+ end
0
     end
0
   
0
     def update_post
0
- @updated = @post.update_attributes(params[:post])
0
+ returning true do
0
+ @updated = @post.update_attributes(params[:post])
0
+ end
0
     end
0
   
0
     def destroy_post

Comments

    No one has commented yet.