On 16 October 2010 15:46, Evanoshki Brataslavainskinski <[email protected]> wrote: > Hi.. I would appreciate some help with the following, because I have > tried to find the solution on the web, but I am still no closer to > resolving my issue.. > > I have a store_controller with an index method and a view for index.. > > I have also created a new method called find_first_in_group. This > method does not have a view.. I want to call it from the index view.. > Also, this method needs an argument to look up a specific field. > > In other programming languages it would be something like: > find_first_in_group(image_url). When I try this it says 'undefined > method'. How to tell it where to find the method?
Can you show the code where you are calling it, with some context around it, and the code of the method please? Also which files they are in and the exact error message (and show which line the error message is indicating). Colin -- 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.

