I am using devise for registration of new users. Users have an attribute, account_type, and I would like to give them the option to select their account type from a drop down menu on the registration page. Which method would be good to use here and how would I set it up?
I am using devise for registration of new users. Users have an attribute, account_type,
Share
rails generate devise:viewsorrails generate devise:views usersto generate views for further customizationaccount_typeto the registrations form indevise/registrations/new.html.erborusers/registrations/new.html.erbdepending how you generatedaccount_typetoattr_accessibleto allow it for mass assignmentattr_accessible :account_typeUsers should now be able to select their account_type.