engine/app/controllers/admin/my_accounts_controller.rb

21 lines
415 B
Ruby
Raw Normal View History

module Admin
class MyAccountsController < BaseController
sections 'settings', 'account'
def edit
@account = current_account
end
def update
@account = current_account
if @account.update_attributes(params[:account])
flash_success!
redirect_to edit_admin_my_account_url
else
render :action => :edit
end
end
end
end