method

except

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) # => {"c"=>3}
params.except(:d)     # => {"a"=>1,"b"=>2,"c"=>3}