Displaying 1 result from an estimated 1 matches for "accounttransact".
2006 May 15
0
acts_as_list, move_higher, odd indexing behaviour?
...and move_higher require an odd indexing scheme to
work.
I''m personally finding that I can''t seem to change the list element
positioning in a rails unit test using move_higher/move_lower, although
move_to_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 :ac...