From 6ef5b747b3d7cfb156ae619b9ba6ec3ea693bf30 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 14 May 2006 19:03:14 +0000 Subject: Fix flip flopped logic in docs for url_for's :only_path option. Closes #4998. [esad@esse.at] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index f0997e3f6a..475144f539 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -421,7 +421,7 @@ module ActionController #:nodoc: # * :anchor -- specifies the anchor name to be appended to the path. For example, # url_for :controller => 'posts', :action => 'show', :id => 10, :anchor => 'comments' # will produce "/posts/show/10#comments". - # * :only_path -- if true, returns the absolute URL (omitting the protocol, host name, and port) + # * :only_path -- if true, returns the relative URL (omitting the protocol, host name, and port) (false by default) # * :trailing_slash -- if true, adds a trailing slash, as in "/archive/2005/". Note that this # is currently not recommended since it breaks caching. # * :host -- overrides the default (current) host if provided -- cgit v1.2.3