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?

    1 answer 1

    Probably the whole thing in Strong Parameters.

     class Users::RegistrationsController < Devise::RegistrationsController before_filter :configure_permitted_parameters protected # added custom fields :birthday, nick, gender, client def configure_permitted_parameters devise_parameter_sanitizer.for(:sign_up) do |u| u.permit(:name, :birthday, :nick, :gender, :client, :email, :password, :password_confirmation) end end end 

    More info on stargeke stitch in github in Strong Parameters section