except(*keys)
Instance Public methods
Returns a hash that includes everything but the given keys. This is useful for limiting a set of parameters to everything but a few known toggles:
1 | @person .update(params[ :person ].except( :admin )) |
Please login to continue.