aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-11 07:25:08 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-11 07:25:08 +0000
commitdc2a3af13378635131fabe6dcfb2e99bb50cc491 (patch)
tree3c34ed1316d805948ee633e62812d77889dbf96b /actionpack/lib
parente2ba2069e79336fee26bff8491f88397dc46de16 (diff)
downloadrails-dc2a3af13378635131fabe6dcfb2e99bb50cc491.tar.gz
rails-dc2a3af13378635131fabe6dcfb2e99bb50cc491.tar.bz2
rails-dc2a3af13378635131fabe6dcfb2e99bb50cc491.zip
Dont encourage custom url options to be called with symbol #2047
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-xactionpack/lib/action_controller/base.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index f62a5502b4..71df8c23c4 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -433,20 +433,6 @@ module ActionController #:nodoc:
#
# This takes the current URL as is and only exchanges the action. In contrast, <tt>url_for :action => 'print'</tt>
# would have slashed-off the path components are the changed action.
- #
- # Instead of passing an options hash, you can also pass a method reference in the form of a symbol. Consider this example:
- #
- # class WeblogController < ActionController::Base
- # def update
- # # do some update
- # redirect_to :dashboard_url
- # end
- #
- # protected
- # def dashboard_url
- # url_for :controller => (@project.active? ? "project" : "account"), :action => "dashboard"
- # end
- # end
def url_for(options = {}, *parameters_for_method_reference) #:doc:
case options
when String then options