Luke Cowell wrote in post #954878: > Did you try Michael's suggestion of adding this to your controller? > > helper_method :find_first_in_group > > This probably isn't the best approach, but you could change line 5 to > something like this: > <% @image_url = Camera.find_first_group_image(camera.camtype)%> > > HTH > > Luke
Yes thanks Luke.. That was what I was looking for.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

