method

except

Importance_1
v5.2.3 - Show latest stable - 0 notes - Class: Parameters
except(*keys) public

Returns a new ActionController::Parameters instance that filters out the given keys.

params = ActionController::Parameters.new(a: 1, b: 2, c: 3)
params.except(:a, :b) # => <ActionController::Parameters {"c"=>3} permitted: false>
params.except(:d)     # => <ActionController::Parameters {"a"=>1, "b"=>2, "c"=>3} permitted: false>
Show source
Register or log in to add new notes.