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?
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?
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