fix sign up
This commit is contained in:
parent
50ef0cb0f4
commit
a51a20c88f
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
|
@ -10,15 +10,18 @@ class RegistrationsController < Devise::RegistrationsController
|
|||
build_resource
|
||||
super
|
||||
end
|
||||
# POST /resource
|
||||
|
||||
def create
|
||||
if message = math_check
|
||||
puts message
|
||||
flash.now.alert = message
|
||||
build_resource(sign_up_params)
|
||||
render :new
|
||||
else
|
||||
super
|
||||
end
|
||||
super
|
||||
end
|
||||
|
||||
# GET /resource/edit
|
||||
def edit_email
|
||||
build_resource
|
||||
puts "EDIT"
|
||||
|
@ -28,7 +31,7 @@ class RegistrationsController < Devise::RegistrationsController
|
|||
build_resource
|
||||
super
|
||||
end
|
||||
# PUT /resource
|
||||
|
||||
def update
|
||||
puts "UPDATE"
|
||||
super
|
||||
|
|
Loading…
Reference in New Issue