class Users::RegistrationsController < Devise::RegistrationsController
  before_filter :configure_permitted_parameters

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.for(:sign_up, :account_update).push(:username)
    devise_parameter_sanitizer.for(:account_update).push(:current_password, :age, :bio, :gender)
  end
end
class Users::RegistrationsController < Devise::RegistrationsController
  before_filter :configure_permitted_parameters

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.for(:sign_up).push(:username)
    devise_parameter_sanitizer.for(:account_update).push(:username, :current_password, :age, :bio, :gender)
  end
end
Fix wrong devise parameter sanitizer's parameters
Fix wrong devise parameter sanitizer's parameters
