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