create a form mult model using nested-form and devise (sign up)

0

I need to create a registration form using the sign up form of the devise and associating with it a model custumer that contains information such as name, date of birth, etc. how do I run the nested attribute in devise?

    
asked by anonymous 03.05.2016 / 17:20

1 answer

0

It should look like this:

def configure_permitted_parameters
  devise_parameter_sanitizer.permit(:sign_up) do |user_params|
    user_params.permit({ roles: [] }, :email, :password, :password_confirmation)
  end
end
    
24.10.2016 / 07:04