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


Trying to do Treebook from "Getting the Latest Changes" without using attr_accessible, Rails 4 +

I'm at about 5:20 into "getting the latest changes" and realized that I was either going to have to figure out how to do this with "strong parameters" or by adding "protected_attributes" to my Gemfile. Only problem is that I tried the "protected_attributes" technique and it didn't work, but I don't have a clue how I can do the strong parameters thing. I'm worried I'll need a complete makeover of all my files that might be affected, and I don't even fully grasp the tutorial (hence learning), let alone how to customize it. Before I just ignored using attr_attributes and got as far as "creating relationships", at which point it wouldn't take the names.

1 Answer