Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mices opened this issue Oct 31, 2023 · 1 comment
Closed

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

mices opened this issue Oct 31, 2023 · 1 comment

Comments

@mices
Copy link

mices commented Oct 31, 2023

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
@nashby
Copy link
Collaborator

nashby commented Nov 6, 2024

I tested it with the latest version of Devise, and it works as expected. Feel free to provide a sample app that reproduces this issue, and I'll reopen it. Thanks!

@nashby nashby closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants