Sha256: 6a1676f2b9b4e3cacdd1c16ec2ea953f47b0e1b4d63fed1b74264817568ac24f
Contents?: true
Size: 498 Bytes
Versions: 17
Compression:
Stored size: 498 Bytes
Contents
module Locomotive class MyAccountController < BaseController sections 'settings', 'account' respond_to :json, :only => :update helper 'Locomotive::Accounts' skip_load_and_authorize_resource def edit @account = current_locomotive_account respond_with @account end def update @account = current_locomotive_account @account.update_attributes(params[:account]) respond_with @account, :location => edit_my_account_url end end end
Version data entries
17 entries across 17 versions & 2 rubygems