Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9033

Show
Ignore:
Timestamp:
03/15/08 20:03:32 (5 months ago)
Author:
david
Message:

Docfix (closes #11249) [juanjo.bazan]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/url_rewriter.rb

    r8892 r9033  
    3737    # * <tt>:anchor</tt> An anchor name to be appended to the path. 
    3838    # * <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>. 
     39    # * <tt>:trailing_slash</tt> If true, adds a trailing slash, as in "/archive/2009/" 
    3940    # 
    4041    # Any other key(:controller, :action, etc...) given to <tt>url_for</tt> is forwarded to the Routes module. 
     
    4445    #    url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :port=>'8080'    # => 'http://somehost.org:8080/tasks/testing' 
    4546    #    url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :anchor => 'ok', :only_path => true    # => '/tasks/testing#ok' 
     47    #    url_for :controller => 'tasks', :action => 'testing', :trailing_slash=>true  # => 'http://somehost.org/tasks/testing/' 
    4648    #    url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :number => '33'  # => 'http://somehost.org/tasks/testing?number=33' 
    4749    def url_for(options)