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 User Authentication with Rails Adding User Support to Our Application Scoping Todo Lists

Error when testing for relationship user -> todo_lists

In Scoping TodoLists around minute 3:45 Jason is writing a it should have many relationship test. I get this: Failures:

1) Users validations relationships should have many todo_lists Failure/Error: should have_many(:todo_lists)

   undefined method `reflect_on_association' for String:Class

I added this to my user_spec.rb: it { should have_many(:todo_lists)}

Thanks for the help