I have a user registration where the user sets his username, first_class and some other attributes. Now there are other attributes that I need to set, for example: str or: acc.
These attributes are likely to be set in a bulk assignment command, such as create. I would not want to do something like update_attribute on each of them separately. So I have to make them attr_accessible.
However, I do not want the user to install them. For example, if the user decides to have first_class = 'Ranger', I would set it: str, not him.
My idea is that I just save params [: first_class] or params [: username] and just explicitly set everything else in my create method for the user. So will you do it?
source
share