method

except

Importance_1
v5.0.0.1 - 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) # => {"c"=>3}
params.except(:d)     # => {"a"=>1,"b"=>2,"c"=>3}
Show source
Register or log in to add new notes.