This will work just fine if you add the module to config/initializers , as indicated with all parameters,
The config/initializers/devise_permitted_parameters.rb with the following contents:
module DevisePermittedParameters extend ActiveSupport::Concern included do before_filter :configure_permitted_parameters end protected def configure_permitted_parameters devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :email, :password, :password_confirmation) } end end DeviseController.send :include, DevisePermittedParameters
Rokibul hasan
source share