Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
440 B

class Users::AccountController < ApplicationController
def check_logged_in
if current_user.nil?
redirect_to(new_user_session_path)
end
end
def index
check_logged_in
end
def personal_details
check_logged_in
end
def update
if current_user.update(user_params)
redirect_to(users_account_path)
end
end
def user_params
params.require(:user).permit(:email, :name, :password)
end
end