SachinJ wrote: > I have a Controller named Orders which has a pending_orders method > which is expected to fetch some records from the database. > > If i dont write a route for this method, I get the following error > when i call this method. > > Couldn't find Order with ID=pending_orders > I am using rails 2.3.5, in the previous versions i use to get this > I am not getting whether its new version requirement...
It seem obvious you have a routing configuration problem, without more detail it's not easy to help you. What can be gleaned from this is that the router is confusing the action to be called with the id parameter. It's difficult to say why, without seeing the related route(s), or at least the URL giving you the problem. -- 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.

