Hi, I have one controller in the /app/controllers/animals_controller.rb directory, and another in /app/controllers/production/services_controller.rb. The thing is that one Animal has many Services, and i'd like to access to them using something like:
http://localhost:3000/animals/1/production/services/1 or at least with: http://localhost:3000/animals/1/services/1 I tried the last one adding in routes.rb: map.resources :animals, :has_many => :services but it throws me an error: uninitialized constant ServicesController any idea? Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---