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 Generating the Devise Views

Gary Spagnoli
Gary Spagnoli
9,668 Points

Devise Views - No longer need to update the user.rb file

It looks like I don't need to make any edits to the user.rb file any longer. No issues whatsoever, just wanted to share that with the community. It asks you to edit that file, but it's no longer necessary with the latest version of Devise.

5 Answers

Naomi Freeman
STAFF
Naomi Freeman
Treehouse Guest Teacher

thanks for the feedback :)

please work all the way through to the end and let us know if it holds true. it'd be super awesome if it did.

Gary Spagnoli
Gary Spagnoli
9,668 Points

Actually, of course I spoke too soon...

What I meant is that adding this code -

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

As is in default project files is causing errors for me. The forms only work when I do not add this line of code. Unsure if this is due to an update in Devise, but I found it unusual that the request was made to add to this portion of the file.

Naomi Freeman
STAFF
Naomi Freeman
Treehouse Guest Teacher

lol :) you need to put stuff in your application controller and your other controllers instead:

https://teamtreehouse.com/forum/rails-404

Gary Spagnoli
Gary Spagnoli
9,668 Points

This is perfect. Thank you!