search for: ratecom

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

Did you mean: falecom
2008 Aug 27
5
VALIDATION QUESTION
...re 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 around this, suggestions anyone? #########controller code def rate @furnii = Furni.find(params[:id]) Rating.delete_all(["rateable_type = ''Furni'' AND rateable_id = ?", @furnii]) @furnii.add_rating Ra...