Displaying 4 results from an estimated 4 matches for "credit_typ".
Did you mean:
credit_type
2006 May 18
1
ActiveRecord problems from within template
Hi,
my Film model has this:
has_many :live_action_personnel,
:class_name => "Credit",
:include => :credit_type,
:order => ''credit_types.position, credits.position ASC'',
:group => ''credit_types.personnel_type'',
:conditions => ''credit_types.personnel_type="live_action_perso...
2006 May 18
1
repeating has_many calls on the same model
Hi,
I currently have a model with (amongst others) the following declarations in it:
has_many :live_action_personnel,
:class_name => "Credit",
:include => :credit_type,
:order => ''credit_types.position, credits.position ASC'',
:group => ''credit_types.personnel_type'',
:conditions => ''credit_types.personnel_type="live_action_perso...
2006 May 20
1
RJS returned javascript written straight to page
hi there,
I have in my controller, the following to catch a link_to_remote:
def form_part_add_personnel
@credit_types = CreditType.find(:all)
p = Credit.new()
p.id = rand.to_s[2..-1]
render :update do |page|
page.insert_html :bottom,
"script",
:partial => ''films/form/personnel'',
:locals =>...
2006 May 15
0
acts_as_list, move_higher, odd indexing behaviour?
...t; ''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(transaction)
transaction.credits.each_index do |x|
credit = transaction.credits[x]
puts " index #{x} id #{credit.id} position #{credit....