Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

docs

git-svn-id: http://jnewland.com/svn/public/ruby/rails/plugins/resource_this@41 9b6b69f6-dd27-0410-8144-a0f3c56a22ea
  • Loading branch information...
commit 9788da3a0993a7854474cd16d583bc536da70947 1 parent fbcb249
jnewland authored
Showing with 9 additions and 4 deletions.
  1. +2 −1  CHANGELOG
  2. +7 −3 README
3  CHANGELOG
View
@@ -1,2 +1,3 @@
* Added resource_this generator
-* Add support for :path_prefix options on resource_this. Useful for admin namespaced controllers
+* Add support for :path_prefix options on resource_this. Useful for admin namespaced controllers
+* wrap some before_filtes in returning true { ... } do
10 README
View
@@ -27,12 +27,16 @@ Not scaffolding. Resourcing. Creates extremely customizable resource controllers
end
def create_post
- @post = Post.new(params[:post])
- @created = @post.save
+ returning true do
+ @post = Post.new(params[:post])
+ @created = @post.save
+ end
end
def update_post
- @updated = @post.update_attributes(params[:post])
+ returning true do
+ @updated = @post.update_attributes(params[:post])
+ end
end
def destroy_post
Please sign in to comment.
Something went wrong with that request. Please try again.