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

3:24 user.rb

the attr_accessible and the attributes didn't appear after installing devise. I've done this in two different environments, and it's causing errors later.

Did something change in the newest version of Devise?

3 Answers

Stone Preston
Stone Preston
42,016 Points

something changed in the newest version of rails. Rails 4 added strong parameters which is used instead of attr_accessible

If you dont want to have any problems I would uninstall rails 4 and use the version used in the videos (3.2 maybe? its 3.something).

If you use rails 4 your experience will not be the same as whats in the videos, and you will have to figure some issues out on your own.

Thanks Stone.

I ended up going off-track with this tutorial, but I'm hoping that the testing section will be relevant to rails 4.

I know Rails 3.2 is still stable and valid, but I don't want to start off behind.