From 7145c29be37874e7dc56bf67b05a91c6518c7895 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 15 Mar 2008 20:03:32 +0000 Subject: Docfix (closes #11249) [juanjo.bazan] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/url_rewriter.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_controller') 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 # * :port Optionally specify the port to connect to. # * :anchor An anchor name to be appended to the path. # * :skip_relative_url_root If true, the url is not constructed using the relative_url_root set in ActionController::AbstractRequest.relative_url_root. + # * :trailing_slash If true, adds a trailing slash, as in "/archive/2009/" # # Any other key(:controller, :action, etc...) given to url_for 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) -- cgit v1.2.3