提交 d76fbff8 编写于 作者: X Xavier Noria

removes reference to RJS from AC::RecordIdentifier docs

上级 404ae77c
...@@ -18,18 +18,12 @@ module ActionController ...@@ -18,18 +18,12 @@ module ActionController
# post = Post.find(params[:id]) # post = Post.find(params[:id])
# post.destroy # post.destroy
# #
# respond_to do |format| # redirect_to(post) # Calls polymorphic_url(post) which in turn calls post_url(post)
# format.html { redirect_to(post) } # Calls polymorphic_url(post) which in turn calls post_url(post)
# format.js do
# # Calls: new Effect.fade('post_45');
# render(:update) { |page| page[post].visual_effect(:fade) }
# end
# end
# end # end
# #
# As the example above shows, you can stop caring to a large extent what the actual id of the post is. You just know # As the example above shows, you can stop caring to a large extent what the actual id of the post is.
# that one is being assigned and that the subsequent calls in redirect_to and the RJS expect that same naming # You just know that one is being assigned and that the subsequent calls in redirect_to expect that
# convention and allows you to write less code if you follow it. # same naming convention and allows you to write less code if you follow it.
module RecordIdentifier module RecordIdentifier
extend self extend self
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册