For a Rails project I'm working on, most of the information in a user's model is meant to be confidential, such as a two factor auth phone number.
I've only whitelisted the basics in the model, email
, password
, and password_confirmation
.
I'm trying to figure out how to set up a sign-up form for this sort of User, when only a few attributes are able to be set via mass assignment. Is there some way to specify a normal set of attr_accessible
properties, and a second set that are only accessible when creating a new User instance?