create a mult model form using nested-form and Devise (Sign up)

Asked

Viewed 45 times

0

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

1 answer

0

It must 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.