method

permitted?

Importance_1
permitted?() public

Returns true if the parameter is permitted, false otherwise.

params = ActionController::Parameters.new
params.permitted? # => false
params.permit!
params.permitted? # => true
Show source
Register or log in to add new notes.