diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-10-15 11:34:33 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-10-15 11:34:33 +0400 |
commit | f247c5f81175fc160de6be906ef87316f0528f38 (patch) | |
tree | 7902844ebe898dd452e6131915eefc3c84b6f57d | |
parent | e759c8882a990606bb4aee8a643431ebe544c69f (diff) | |
download | rails-f247c5f81175fc160de6be906ef87316f0528f38.tar.gz rails-f247c5f81175fc160de6be906ef87316f0528f38.tar.bz2 rails-f247c5f81175fc160de6be906ef87316f0528f38.zip |
Update AC::RecordIdentifier example
-rw-r--r-- | actionpack/lib/action_controller/record_identifier.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb index 2036442cfe..9c38ff44d8 100644 --- a/actionpack/lib/action_controller/record_identifier.rb +++ b/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 |