Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8314

Show
Ignore:
Timestamp:
12/05/07 22:04:02 (1 year ago)
Author:
marcel
Message:

Correct example for path parameters to use strings as keys in the hash rather than symbols. Closes #7160 [akaspick]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/request.rb

    r8235 r8314  
    298298    end 
    299299 
    300     # Returns a hash with the parameters used to form the path of the request  
     300    # Returns a hash with the parameters used to form the path of the request. 
     301    # Returned hash keys are strings.  See <tt>symbolized_path_parameters</tt> for symbolized keys. 
    301302    # 
    302303    # Example:  
    303304    # 
    304     #   {:action => 'my_action', :controller => 'my_controller'} 
     305    #   {'action' => 'my_action', 'controller' => 'my_controller'} 
    305306    def path_parameters 
    306307      @path_parameters ||= {}