Displaying 3 results from an estimated 3 matches for "imageasset".
2008 Aug 24
3
tricky include question
...ing to do something that is not
possible. I am trying to include tables that are associated to other
tables in the actual include statement but not to the original table
call. In this case the furnii table.
this is my original query
@furnii_from_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 ei...
2008 Oct 01
0
problems select list generated from tables
...ssociations 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 Google Groups "Ruby on Rails: Talk" grou...
2007 Oct 21
13
[ANN/RFC] Rathole, a fixtures extension plugin
Like lots of other folks, I''ve been searching for a way to scratch my
fixture itches. Rathole is my extraction of a few techniques we''ve
successfully applied at my day job.
We''ve been using Rathole for a month or so now, but I''d really like
some feedback from a wider audience. Rathole tackles:
* Conflicting PK''s (no more id''s in fixture