Permalink
Browse files

Correct example for path parameters to use strings as keys in the has…

…h rather than symbols. Closes #7160 [akaspick]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 2e47db2 commit 0d82b146a1738eaf9a90102bd4f17452bc251560 Marcel Molina committed Dec 5, 2007
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/lib/action_controller/request.rb
@@ -297,11 +297,12 @@ def symbolized_path_parameters
@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

0 comments on commit 0d82b14

Please sign in to comment.