method

permitted?

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Parameters
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.