webdev.camp/app/controllers/registrations_controller.rb
Torsten Ruger 674298ba13 move address to user
Migration to add fields to User, change factory accordingly
profile view to edit new fields
remove fields from resume
2017-06-03 22:07:09 +03:00

23 lines
584 B
Ruby

class RegistrationsController < Devise::RegistrationsController
protected
def after_inactive_sign_up_path_for(resource)
page_path(:camp)
end
def after_update_path_for(resource)
resume_path
end
private
def sign_up_params
params.require(:user).permit(:name, :email,:street,:city,
:country , :password, :password_confirmation)
end
def account_update_params
params.require(:user).permit(:name, :email,:street,:city,:country,
:password, :password_confirmation, :current_password)
end
end