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 trial

Ruby ActiveRecord Basics Migrations and Relationships Has and Belongs to Many

John Cunningham
John Cunningham
8,665 Points

http://localhost:3000/accounts

So I'm at the part of the video where we're building out our view.. and when I try to see it with http://localhost:3000/accounts.. I get this error message..

Missing template accounts/index, application/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in: * "/Users/johnny/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/web-console-2.0.0/lib/action_dispatch/templates" * "/Users/johnny/biller/app/views"

any ideas?

1 Answer

Robert Ho
PLUS
Robert Ho
Courses Plus Student 11,383 Points

It looks like you are missing the template for your accounts#index action.

Under your accounts views folder, create a index.html.erb file and put in the content that you want you should be good to go.