i have a User model and some common columns, such as name, email, password, etc.
and here is the thing:
i donot want a user changing his email address after signed up, what should i do?
just don’t include the email field in the update form?
and i think the attr_accessible is not for this use either.
what do you suggest? thanks a lot.
What you need is
attr_readonlyThe documentation says the following
So, a new record can be created with an
emailbut you can never change it (without a hack) after the record has been created.