app/controllers/application_controller.rb
# This method allows devise to pass non standard attributes through and
# thereby comply with 'strong parameters'.
This method allows devise to pass non standard attributes through and
thereby comply with 'strong parameters'.
This method allows devise to pass non standard attributes through and thereby comply with ' strong parameters ' .
def update_sanitized_params
    devise_parameter_sanitizer.for(:sign_up) do |params|
      params.permit *safe_user_attrs
    end
    devise_parameter_sanitizer.for(:account_update) do |params|
      params.permit *(safe_user_attrs << :current_password)
    end
  end
def update_sanitized_params devise_parameter_sanitizer . for ( :sign_up ) do | params | params . permit * safe_user_attrs end devise_parameter_sanitizer . for ( :account_update ) do | params | params . permit * ( safe_user_attrs << :current_password ) end end
This method allows devise to pass non standard attributes through and
thereby comply with 'strong parameters'.
This method allows devise to pass non standard attributes through and thereby comply with ' strong parameters ' .