search for: account_transaction

Displaying 2 results from an estimated 2 matches for "account_transaction".

Did you mean: account_transactions
2006 May 15
0
acts_as_list, move_higher, odd indexing behaviour?
..._top works. (See code following below) Cheers, N ---- # model defs class AccountTransaction < ActiveRecord::Base has_many :credits, :foreign_key => ''transaction_id'', :order => ''position ASC'' end class Credit < ActiveRecord::Base belongs_to :account_transaction, :foreign_key => ''transaction_id'' belongs_to :account acts_as_list :scope => :transaction_id belongs_to :credit_type end #unit test class AccountTransactionTest < Test::Unit::TestCase fixtures :account_transactions, :credits def display_credits(transactio...
2006 Aug 17
2
RJS - slower than normal RHTML?
I know that isn''t supposed to be the case, and it usually isn''t, but today, I''ve run across a situation where rendering the same partial through RJS is taking about 5 times longer than rendering the partial in the RHTML. I have in my main RHTML <tbody id="account_transactions"> <%= render :partial => ''account_transactions/transaction'', :collection => @account_transactions, :locals => {:nobalance => false, :goto => false} %> </tbody> By putting a benchmark around just the render line, it renders on average 0.3 se...