[Rails] Re: Re: undefined method + method(argument)
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home