aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/routing_url_for.rb
diff options
context:
space:
mode:
authorAvnerCohen <israbirding@gmail.com>2012-10-29 13:10:53 +0200
committerAvnerCohen <israbirding@gmail.com>2012-10-29 13:10:53 +0200
commitbe4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21 (patch)
treed7b6d29f22d5ce3aeef2a293b8ea5d55f9257868 /actionpack/lib/action_view/routing_url_for.rb
parent20c574ca85e380d06c2e0f148301177a9b197b2e (diff)
downloadrails-be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21.tar.gz
rails-be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21.tar.bz2
rails-be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21.zip
Hash Syntax to 1.9 related changes
Diffstat (limited to 'actionpack/lib/action_view/routing_url_for.rb')
-rw-r--r--actionpack/lib/action_view/routing_url_for.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/actionpack/lib/action_view/routing_url_for.rb b/actionpack/lib/action_view/routing_url_for.rb
index d1488e2332..f10e7e88ba 100644
--- a/actionpack/lib/action_view/routing_url_for.rb
+++ b/actionpack/lib/action_view/routing_url_for.rb
@@ -29,19 +29,19 @@ module ActionView
# Controllers passed in using the +:controller+ option will retain their namespace unless it is an absolute one.
#
# ==== Examples
- # <%= url_for(:action => 'index') %>
+ # <%= url_for(action: 'index') %>
# # => /blog/
#
- # <%= url_for(:action => 'find', :controller => 'books') %>
+ # <%= url_for(action: 'find', controller: 'books') %>
# # => /books/find
#
- # <%= url_for(:action => 'login', :controller => 'members', :only_path => false, :protocol => 'https') %>
+ # <%= url_for(action: 'login', controller: 'members', only_path: false, protocol: 'https') %>
# # => https://www.example.com/members/login/
#
- # <%= url_for(:action => 'play', :anchor => 'player') %>
+ # <%= url_for(action: 'play', anchor: 'player') %>
# # => /messages/play/#player
#
- # <%= url_for(:action => 'jump', :anchor => 'tax&ship') %>
+ # <%= url_for(action: 'jump', anchor: 'tax&ship') %>
# # => /testing/jump/#tax&ship
#
# <%= url_for(Workshop.new) %>
@@ -66,11 +66,11 @@ module ActionView
# # if request.env["HTTP_REFERER"] is not set or is blank
# # => javascript:history.back()
#
- # <%= url_for(:action => 'index', :controller => 'users') %>
+ # <%= url_for(action: 'index', controller: 'users') %>
# # Assuming an "admin" namespace
# # => /admin/users
#
- # <%= url_for(:action => 'index', :controller => '/users') %>
+ # <%= url_for(action: 'index', controller: '/users') %>
# # Specify absolute path with beginning slash
# # => /users
def url_for(options = nil)