Flowdock
method

except

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