diff options
author | Xavier Noria <fxn@hashref.com> | 2011-03-29 22:32:45 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-04-13 13:24:32 +0200 |
commit | d76fbff8b44172545bc1debe0d5f44af41c55ced (patch) | |
tree | 1c7f06a27808556c61be9ec2cd801a819b6ec1e7 | |
parent | 404ae77c409a17b4e8546260a47d0bf8ca566b51 (diff) | |
download | rails-d76fbff8b44172545bc1debe0d5f44af41c55ced.tar.gz rails-d76fbff8b44172545bc1debe0d5f44af41c55ced.tar.bz2 rails-d76fbff8b44172545bc1debe0d5f44af41c55ced.zip |
removes reference to RJS from AC::RecordIdentifier docs
-rw-r--r-- | actionpack/lib/action_controller/record_identifier.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb index 3de40b0de3..2def78b51a 100644 --- a/actionpack/lib/action_controller/record_identifier.rb +++ b/actionpack/lib/action_controller/record_identifier.rb @@ -18,18 +18,12 @@ module ActionController # post = Post.find(params[:id]) # post.destroy # - # respond_to do |format| - # 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 + # redirect_to(post) # Calls polymorphic_url(post) which in turn calls post_url(post) # 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 - # that one is being assigned and that the subsequent calls in redirect_to and the RJS expect that same naming - # convention and allows you to write less code if you follow it. + # As the example above shows, you can stop caring to a large extent what the actual id of the post is. + # You just know that one is being assigned and that the subsequent calls in redirect_to expect that + # same naming convention and allows you to write less code if you follow it. module RecordIdentifier extend self |