diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-27 14:03:55 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-27 14:03:55 -0700 |
commit | bd0550ef5abfc445e5255972ceb0bb7db7aee96d (patch) | |
tree | 5ef95cd58c7deb13c1680349fcdaa46f4ba81b36 /actionpack/lib/action_dispatch/routing/url_for.rb | |
parent | 827a0fee07eff7ca35ecdf5ca650f2094ad4825a (diff) | |
parent | 8526f727cfadb49e629e7ac3a0bbcbf9a89ec3cd (diff) | |
download | rails-bd0550ef5abfc445e5255972ceb0bb7db7aee96d.tar.gz rails-bd0550ef5abfc445e5255972ceb0bb7db7aee96d.tar.bz2 rails-bd0550ef5abfc445e5255972ceb0bb7db7aee96d.zip |
Merge pull request #2714 from vijaydev/docs
doc fixes
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/url_for.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index de14113c51..30048cd48a 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -131,10 +131,14 @@ module ActionDispatch # # 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' + # 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 = nil) case options when String |