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 Single Table Inheritance

Fenian Noakes
PLUS
Fenian Noakes
Courses Plus Student 5,212 Points

NameError: uninitialized constant AccountEntry

Hi, I have come across an issue @ 20:49 in the tutorial. (Within the console) after I enter; $c.time_entries

I get the following error;

NameError: uninitialized constant AccountEntry from /Users/feniannoakes/Desktop/biller/biller/app/models/time_entry.rb:1:in `<top (required)>' ........ etc

Not sure where to go next on that? thanks

If you haven't solved this yet, could you copy/paste your code here?

Fenian Noakes
Fenian Noakes
Courses Plus Student 5,212 Points

Hi Andrew, thank you kindly for replying. I found the bug - my fault - saved the account_entry.rb to the wrong file. I have saved that in the correct place - and it seems to be ok now. Sorry for the trouble mate. Cheers