Displaying 3 results from an estimated 3 matches for "furni".
Did you mean:
forni
2008 Aug 24
3
tricky include question
I''ve been here before and maybe I''m trying 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) + &...
2008 Aug 27
5
VALIDATION QUESTION
I''m trying to validate a record before save. I''m using one controller
in this case furnii where I have all my calls. The problem is that, the
form containing the field I''m trying to validate resides in the furnii
views. I tried to add validates_presence_of :content (the field name) in
both the furnii model and the ratecomment model but it does not work. I
know there are ways...
2008 Oct 01
0
problems select list generated from tables
...ate 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 Google Group...