1
0
Fork 0
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:
Alexey Vakhov 2011-10-15 11:34:33 +04:00
parent e759c8882a
commit f247c5f811

View file

@ -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