Displaying 2 results from an estimated 2 matches for "furnii".
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 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) + &q...