Permalink
Browse files

Docfix (closes #11249) [juanjo.bazan]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent b2dd357 commit 7145c29be37874e7dc56bf67b05a91c6518c7895 @dhh dhh committed Mar 15, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_controller/url_rewriter.rb
@@ -36,13 +36,15 @@ def self.included(base) #:nodoc:
# * <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.
#
# Examples:
#
# 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)

0 comments on commit 7145c29

Please sign in to comment.