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 Creating an Authentication System Updating the User Model

challenge task 1 of 1 stage 3 creating an authentication system about attr_accessible

I am stuck with that part. i put after the attr_accessiable lists i put

:first_name, :last_name, :profile_names is that correct?

or i have to type again attr_assessiable again?

please help me with the hint and thank you so much !

4 Answers

Kevin Kenger
Kevin Kenger
32,834 Points

Instead of adding attr_accessible beforehand, just add those three attributes to the list that's already there, like this:

attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name, :profile_name
Kevin Kenger
Kevin Kenger
32,834 Points

Hey Brian,

That question is actually kind of confusing. It's asking for you to add the first name, last name, and profile NAMES, but you type it :profile_name instead of :profile_names. It's asking for the information of each user, and since each user only has one profile name, that's how we add it to the list of attributes.

thank for your reply. i fixed the :profile_name. when i put like this way attr_accessible :email, :password, :password_confirmation, :remember_me :first_name, :last_name, :profile_name "it said bummer"

what i mean is should i type like this attr_accessible :email, :password, :password_confirmation, :remember_me attr_accessible :first_name, :last_name, :profile_name

excellent answer! what i was put a enter newline and tabs several of time what i put it was not working. and its working. when i am doing on this teamtree its more buggy than the real world editor. . tho. but thank you and i really appreciation so much