Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Karen Ho10,190 Points
We're back in our veterinarian app. Route all GET requests for the /pets path to the PetsController's index action metho
My answer doesn't seem to work, please help!
Rails.application.routes.draw do # YOUR CODE HERE GET '/pets', to: 'PetsController#index' end
You need to use lower case and you don't need to add the word 'controller' as rails does it automatically.
This should pass....
Rails.application.routes.draw do # YOUR CODE HERE get '/pets', to: 'pets#index' end