Fixed: sign_up
This commit is contained in:
parent
93dd8dc48e
commit
cab3debd4a
|
@ -1,4 +1,6 @@
|
||||||
class Users::RegistrationsController < Devise::RegistrationsController
|
class Users::RegistrationsController < Devise::RegistrationsController
|
||||||
|
before_filter :update_sanitized_params, if: :devise_controller?
|
||||||
|
|
||||||
# POST /resource
|
# POST /resource
|
||||||
def create
|
def create
|
||||||
# Try stop bots
|
# Try stop bots
|
||||||
|
@ -8,4 +10,13 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
||||||
end
|
end
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def update_sanitized_params
|
||||||
|
devise_parameter_sanitizer.for(:sign_up) do |u|
|
||||||
|
u.permit(:uname, :name, :email, :password, :password_confirmation)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
|
@ -4,7 +4,7 @@ Rosa::Application.routes.draw do
|
||||||
get :sended
|
get :sended
|
||||||
end
|
end
|
||||||
|
|
||||||
devise_scope :users do
|
devise_scope :user do
|
||||||
get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
|
get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
|
||||||
get 'users/sign_up' => 'users/registrations#new', as: :new_user_registration
|
get 'users/sign_up' => 'users/registrations#new', as: :new_user_registration
|
||||||
post 'users' => 'users/registrations#create', as: :user_registration
|
post 'users' => 'users/registrations#create', as: :user_registration
|
||||||
|
|
Loading…
Reference in New Issue