Flowdock
method

[]

Importance_1
Ruby on Rails latest stable (v5.2.3) - 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.