mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update AC::RecordIdentifier example
This commit is contained in:
parent
e759c8882a
commit
f247c5f811
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ module ActionController
|
||||||
# <% end %> </div>
|
# <% end %> </div>
|
||||||
#
|
#
|
||||||
# # controller
|
# # controller
|
||||||
# def destroy
|
# def update
|
||||||
# post = Post.find(params[:id])
|
# 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)
|
# redirect_to(post) # Calls polymorphic_url(post) which in turn calls post_url(post)
|
||||||
# end
|
# end
|
||||||
|
|
Loading…
Reference in a new issue