fixing conflicts [#47] [#47]

This commit is contained in:
rgarcia
2015-07-30 18:18:28 +02:00
parent 59cea45c26
commit cd2d05e0c5
21 changed files with 312 additions and 78 deletions

View File

@@ -0,0 +1,23 @@
class AccountController < ApplicationController
before_action :authenticate_user!
before_action :set_account
def show
end
def update
flash[:notice] = t("flash.actions.save_changes.notice") if @account.update(account_params)
redirect_to account_path
end
private
def set_account
@account = current_user
end
def account_params
params.require(:account).permit(:first_name, :last_name)
end
end