Permalink
Browse files

Update AC::RecordIdentifier example

  • Loading branch information...
1 parent e759c88 commit f247c5f81175fc160de6be906ef87316f0528f38 @avakhov avakhov committed Oct 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/record_identifier.rb
@@ -14,9 +14,9 @@ module ActionController
# <% end %> </div>
#
# # controller
- # def destroy
+ # def update
# post = Post.find(params[:id])
- # post.destroy
+ # post.update_attributes(params[:post])
#
# redirect_to(post) # Calls polymorphic_url(post) which in turn calls post_url(post)
# end

0 comments on commit f247c5f

Please sign in to comment.