search for: skintype

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

Did you mean: sk_type
2008 Aug 24
3
tricky include question
..._furnii = Furni.find :all, :include =>[:raider, {:imageasset => :skin}], :conditions => ""+Furni.conditions_by_like(@search)+" OR " +Raider.conditions_by_like(@search) + "OR" +Skin.conditions_by_like(@search) + "" now I need to include 2 more tables skintype and skinstyle. these 2 tables are not associated to either furnii or imageassets but have an association to the skin table, which is associated to furnii through imageassets. can I group them in the same query? or do I have to do a separate query for skintype and skinstyle and then join it at the...
2008 Oct 01
0
problems select list generated from tables
...ke to generate a select list form multiple associations and I''m not being able to. Do not know what the problem is. Hope anyone can help. the code below gives me a: "You have a nil object when you didn''t expect it! The error occurred while evaluating nil.filename" @skinType = Furni.find(:all, :include =>[:imageasset => {:skin => [:skintype, :skinstyle]}]).map {|st| [st.imageasset. filename, st.id] } -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Goog...