Sha256: 9fa0b2e6ee1b21921f9acdb59f6e40b906010b18243d1720dd4b5951d9c1c25b
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
# encoding: utf-8 module InvoiceBar class AccountsController < InvoiceBar::ApplicationController inherit_resources respond_to :html, :json before_filter :require_login before_filter :fetch_currencies, :only => [:new, :create, :edit, :update] def index @accounts = current_user.accounts.page(params[:page]) index! {} end def create @account = Account.new(params[:account]) current_user.accounts << @account create! {} end def update update! {} end def destroy destroy! {} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
invoice_bar-0.0.6 | app/controllers/invoice_bar/accounts_controller.rb |
invoice_bar-0.0.5 | app/controllers/invoice_bar/accounts_controller.rb |