Flowdock
method

[]

Importance_1
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: Parameters
[](key) public

Returns a parameter for the given key. If not found, returns nil.

params = ActionController::Parameters.new(person: { name: 'Francesco' })
params[:person] # => {"name"=>"Francesco"}
params[:none]   # => nil
Show source
Register or log in to add new notes.