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

Larry Norton
Larry Norton
5,810 Points

Error: "attr_accessible has been extracted out of Rails 4 in to a gem"

Remaining error message, "...Please use new recommended protection model for params(strong_parameters) or add protected_attributes to your Gemfile to use old one."

I have Googled for resolution, but as I am a beginner to ROR, I am not getting an understandable answer. Could someone help me get through this phase.

btw: This tutorial so much more organized and progressive which makes it very understandable, unlike so many other entities.

Thanks, Larry Norton

4 Answers

I found these helpful for just going ahead using Rails 4.0 but still generally following this tutorial:

Generally using strong parameters:

Making Rails 4.0 work with devise:

Brandon Barrette
Brandon Barrette
20,485 Points

I recommend you do two things:

  • Do the ruby on rails ODOT (Todo List) app first. That is written in rails 4 and fits with current versions of ruby and rails.
  • Downgrade your version of rails to 3.2.13 and ruby to 1.9.3 to match the versions in the videos. Trying to do it with Rails 4 will be challenging and frustrating to someone new to rails. I started this in june, and I'm still using rails 3.2.13. I will upgrade eventually, when it's needed.
Larry Norton
Larry Norton
5,810 Points

Thanks Brandon for your quick response and I will go on to the Todo List first.

And as soon as I hit send, I came across this thread: https://teamtreehouse.com/forum/generating-the-devise-views

Thanks again, Larry Norton

Naomi Freeman
Naomi Freeman
Treehouse Guest Teacher

If you're interested in the devise bits and security, it's here too:


Gets easier after the user profile set-up stuff :)