devise parameters and username dropdown nav

jamesperet лет %!s(int64=11): %!d(string=назад)
Родитель
Сommit
c701b03358
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/controllers/application_controller.rb

+ 1 - 0
app/controllers/application_controller.rb

@@ -7,6 +7,7 @@ class ApplicationController < ActionController::Base
7 7
 
8 8
   def configure_permitted_parameters
9 9
     devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:username, :location, :current_password) }
10
+    devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :location) }
10 11
   end
11 12
   
12 13
 end