method
except
v5.2.3 -
Show latest stable
- Class:
ActionController::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>