attr_protected allows you to specify a list of keys that cannot be set when using mass-assignment. It can be called multiple times, each call adds to the already declared attributes. It is recommended that you specify attr_accessible instead of attr_protected.