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

Add the first name, last name, and profile_name to the list of attributes in attr_accessible.

Code challege 1of1 Where to put all the information:

attrssible :email, :password, :password_confirmation, :firstname, :lastname, :profile_name

5 Answers

It looks like you'd want to do something like:

attr_accessible :email, :password, :password_confirmation, :first_name, :last_name, :profile_name

Alan, this doesn't actually work for me, despite that being correct - it could be a bug now given updated versions? I found that installing the gem 'protected_attributes' was the only way to overcome this in creating the Treebook application. The error messages returned via the Code Challenge imply it could be the same issue in the background?

Pdate the variable of 'quickLower' on about line 23, to the lowercased version of the string 'quick'. var quickLower = quick.toLowCase(); var quickLower = quick.toLowCase('quick')

What wrong with the problem above?

I'm not sure that I understand what you're asking here. Can you break down your question a little more?

Mine is generating lot of error message when i input this line of code.