Open Stevendeleon opened 7 years ago
Adding new fields to devise registration (signup)
class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :configure_permitted_parameters, if: :devise_controller? protected def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up, keys: [:fname, :lname, :email, :password, :password_confirmation]) end end
Added this to the main controller to try and allow these fields for fname/lname
<%= f.label :fname %> <br /> <%= f.text_field :fname %><br /> <%= f.label :lname %><br /> <%= f.text_field :lname %><br />
in the new.html.erb (for registration)
resolved
Adding new fields to devise registration (signup)
Added this to the main controller to try and allow these fields for fname/lname
in the new.html.erb (for registration)