Flowdock
method

[]

Importance_1
v5.1.7 - Show latest stable - 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] # => <ActionController::Parameters {"name"=>"Francesco"} permitted: false>
params[:none]   # => nil
Show source
Register or log in to add new notes.