There is a problem with the devise
heme. As a service model, I chose Users
:
rails g devise User
And then expanded it by adding additional data to the table:
rails g migration AddFieldsToUsers birthday:date nick:string gender:string client:string
Completed registration form:
h2 Sign up = form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| = devise_error_messages! div = f.label :email br = f.email_field :email, :autofocus => true div = f.label :nick br = f.text_field :nick div = f.label :password br = f.password_field :password, :required => true div = f.label :password_confirmation br = f.password_field :password_confirmation, :required => true div = f.label :birthday br = f.date_field :birthday, :required => true div = f.label :gender br = f.select :gender, [[:male, 'male'], [:female, 'female']], :required => true div = f.submit "Sign up" = render "devise/shared/links"
The form is displayed normally, the migration also worked without errors, but all the non-native form fields are simply not processed. Who will say what the problem is and how to get around it?