search for: preview_image

Displaying 1 result from an estimated 1 matches for "preview_image".

2006 Jan 26
0
setting default on "has_one" failure
Hi there, I have a model for a Film, which: has_and_belongs_to_many :artists has_many :stills has_one :preview_image, :class_name => "Still", :conditions => "priority=''main''" the has_one:preview_image and has_many:stills obviously draw from the same table. I was wondering if there is a way to set a default value fo...