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 Build a Simple Ruby on Rails Application Writing Tests Fixtures

Arun Nijhawan
Arun Nijhawan
336 Points

uniqueness: true not working

I am following the tutorial and get the same error/failures before and after i put uniqueness: true in my user.rb file.

I have backtracked and found the error only occurs during that step, any thoughts?

1 Answer

David Moore
David Moore
13,916 Points

Hey Arun Nijhawan, could you post your code from your user.rb file so we can see what is going on? Also, post the exact error you receive. With this info we should be able to help you out.

Tip: Add three backticks, which is above the tab key on many keyboards and the word ruby on the line before your code and three backticks on the line after. That will format the code nicely so we can easily read what you've got. Click the Markdown Cheatsheet link below the comment area for more info.