aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-03-29 22:32:45 +0200
committerXavier Noria <fxn@hashref.com>2011-04-13 13:24:32 +0200
commitd76fbff8b44172545bc1debe0d5f44af41c55ced (patch)
tree1c7f06a27808556c61be9ec2cd801a819b6ec1e7 /actionpack/lib/action_controller
parent404ae77c409a17b4e8546260a47d0bf8ca566b51 (diff)
downloadrails-d76fbff8b44172545bc1debe0d5f44af41c55ced.tar.gz
rails-d76fbff8b44172545bc1debe0d5f44af41c55ced.tar.bz2
rails-d76fbff8b44172545bc1debe0d5f44af41c55ced.zip
removes reference to RJS from AC::RecordIdentifier docs
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/record_identifier.rb14
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