camerican / Help-Desk

Help Desk for NYCDA Projects
1 stars 1 forks source link

registration table #24

Open Stevendeleon opened 7 years ago

Stevendeleon commented 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)

jamessullivan77 commented 7 years ago

resolved