search for: testamonials

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

Did you mean: testamonial
2008 May 16
3
has_one and find_by_id issue
I have two models: testamonial photo (has_attachement) testamonial has_one photo The issue is when do this: @testamonial = Testamonial.find_all_by_id(id) I get "undefined method `photo'' for" in my browser?? BUT here is the big kicker.... If I do @testamonial = Testamonial.find(:first) everything works fine and the image is show!.. (find :all works too when I loop