Changeset 9033
- Timestamp:
- 03/15/08 20:03:32 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/url_rewriter.rb
r8892 r9033 37 37 # * <tt>:anchor</tt> An anchor name to be appended to the path. 38 38 # * <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/" 39 40 # 40 41 # Any other key(:controller, :action, etc...) given to <tt>url_for</tt> is forwarded to the Routes module. … … 44 45 # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :port=>'8080' # => 'http://somehost.org:8080/tasks/testing' 45 46 # 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/' 46 48 # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :number => '33' # => 'http://somehost.org/tasks/testing?number=33' 47 49 def url_for(options)