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 trialCasey Germain
692 PointsPage not working when I follow instructions
I'm following the instructions on the videos in the "Build a Simple Ruby on Rails Application" videos. I must be using a different version of rails since the attr_accessible method seems to have been removed in the rails version I am using. I am using ruby 2.1.2p95 and rails 4.1.1. When I get to the part where I create relationships between the status and user, the website does not seem to recognize that there is a user connected to the status. I get an error "NoMethodError in Statuses#show" and it says "undefined method 'full_name' for nil:NilClass" I had a similar error while trying to do only the first_name. I'm hoping it's just an issue with different versions of rails and someone might be able to help out fairly easily.
1 Answer
Ace Motanya
31,756 PointsYea they no longer use attr_accessible in raisl 4 and above. They now use something called strong params. You can install rails 3 to work thru the tutorials exactly as how they have done it. I ran into the same issue when I was doing it.