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 trialZixing Li
54 PointsWriting the user_friendships_controller and model in Rails 5
Hi,
I've been following your lessons on creating the user_friendships_controller as well as the model but attr_accessible is no longer supported in Rails 5. I did some research and it seems that we need to write strong parameters under private. Right now I have the exact same codes as in the video, and I couldn't figure out how to change the codes in the controller and model to fit Rails 5... Can you please help me with it? Thank you!