diff options
author | Marcel Molina <marcel@vernix.org> | 2007-12-05 22:04:02 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-12-05 22:04:02 +0000 |
commit | 0d82b146a1738eaf9a90102bd4f17452bc251560 (patch) | |
tree | 9177909ec4eb1ee1115d03d98f52797e9deb4153 /actionpack | |
parent | 2e47db2fbd7ea381e3680ffa8ee0ae8547078970 (diff) | |
download | rails-0d82b146a1738eaf9a90102bd4f17452bc251560.tar.gz rails-0d82b146a1738eaf9a90102bd4f17452bc251560.tar.bz2 rails-0d82b146a1738eaf9a90102bd4f17452bc251560.zip |
Correct example for path parameters to use strings as keys in the hash rather than symbols. Closes #7160 [akaspick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 2e63180f80..a3eac357f7 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -297,11 +297,12 @@ module ActionController @symbolized_path_parameters ||= path_parameters.symbolize_keys end - # Returns a hash with the parameters used to form the path of the request + # Returns a hash with the parameters used to form the path of the request. + # Returned hash keys are strings. See <tt>symbolized_path_parameters</tt> for symbolized keys. # # Example: # - # {:action => 'my_action', :controller => 'my_controller'} + # {'action' => 'my_action', 'controller' => 'my_controller'} def path_parameters @path_parameters ||= {} end |