diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-15 20:03:32 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-15 20:03:32 +0000 |
commit | 7145c29be37874e7dc56bf67b05a91c6518c7895 (patch) | |
tree | e7417ba4c635d120b54b928b47661ddf425d3c3d | |
parent | b2dd357d226273500c42935e389e81091f64231c (diff) | |
download | rails-7145c29be37874e7dc56bf67b05a91c6518c7895.tar.gz rails-7145c29be37874e7dc56bf67b05a91c6518c7895.tar.bz2 rails-7145c29be37874e7dc56bf67b05a91c6518c7895.zip |
Docfix (closes #11249) [juanjo.bazan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/url_rewriter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/url_rewriter.rb b/actionpack/lib/action_controller/url_rewriter.rb index b24239b1e3..6f7e0cea09 100644 --- a/actionpack/lib/action_controller/url_rewriter.rb +++ b/actionpack/lib/action_controller/url_rewriter.rb @@ -36,6 +36,7 @@ module ActionController # * <tt>:port</tt> Optionally specify the port to connect to. # * <tt>:anchor</tt> An anchor name to be appended to the path. # * <tt>:skip_relative_url_root</tt> If true, the url is not constructed using the relative_url_root set in <tt>ActionController::AbstractRequest.relative_url_root</tt>. + # * <tt>:trailing_slash</tt> If true, adds a trailing slash, as in "/archive/2009/" # # Any other key(:controller, :action, etc...) given to <tt>url_for</tt> is forwarded to the Routes module. # @@ -43,6 +44,7 @@ module ActionController # # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :port=>'8080' # => 'http://somehost.org:8080/tasks/testing' # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :anchor => 'ok', :only_path => true # => '/tasks/testing#ok' + # url_for :controller => 'tasks', :action => 'testing', :trailing_slash=>true # => 'http://somehost.org/tasks/testing/' # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :number => '33' # => 'http://somehost.org/tasks/testing?number=33' def url_for(options) options = self.class.default_url_options.merge(options) |