Displaying 4 results from an estimated 4 matches for "credit_types".
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_personnel"''
If I try and test this for emptiness:
if...
2006 May 18
1
repeating has_many calls on the same model
...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_personnel"''
has_many :production_pers...
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?
Hi,
[reposting to list, posting via google groups apparently didn''t work]
I''m trying to use acts_as_list for the first time.
Can anyone confirm the odd behaviour reported here?
http://blog.nominet.org.uk/tech/Web/2006/03/06/Using_acts_as_list_in_...
i.e. element access and move_higher require an odd indexing scheme to
work.
I''m personally finding that I