Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDavid Masaka
3,153 PointsCreating a view quiz
To find a view template file for the PetsController's "show" action method, Rails will look in the app/views/ _____ / ______ .html.erb file. (Fill in the subdirectory and the start of the file name.)
The blanks should be pages and show but that does not work
1 Answer
Jay McGavren
Treehouse TeacherYou're right about the show
part. But Rails would only look in the pages
directory if it were handling a request for a pages
resource, which would be handled by a class named PagesController
. But this request is being handled by PetsController
, so... I'll see if you can take it from there. :)
David Masaka
3,153 PointsDavid Masaka
3,153 PointsThank you