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 Building the Profile Page Testing the Profile Name

Typo

old format and new format are both

validates :profile_name, presence: true, uniqueness: true, format: { with: /a-ZA-Z0-9_-/, }

pretty sure old format it is

validates_presence :profile_name, true

1 Answer

Naomi Freeman
STAFF
Naomi Freeman
Treehouse Guest Teacher

They flip back and forth a lot with profile_name user_name full_name in the code. Just watch yourself lol Good you're reporting it. Just saying they do it a lot and when I first started coding it really destroyed my code a few times.