heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.95k stars 5.55k forks source link

strong params not working as per "lazy way" instructions #5650

Open mices opened 11 months ago

mices commented 11 months ago

class ApplicationController < ActionController::Base before_action :configure_permitted_parameters, if: :devise_controller? protect_from_forgery with: :exception include PublicActivity::StoreController

WillPaginate.per_page = 75

protected

def configure_permitted_parameters
    devise_parameter_sanitizer.permit(:sign_up, keys:[:email, :name, :first_name, :last_name, :middle_name,  :birth_date, :birth_place_country, :birth_place_state, :birth_place_city, :country, :state, :city, :gender, :band, :genre, :password, :password_confirmation])
end