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
pavey nganpi
1,044 Pointsruby
have an error when i generate my first status, i dont know why, when i do 127.0.0.1:3000/statuses, it give me this error
RuntimeError in StatusesController#index
attr_accessible is extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or add protected_attributes to your Gemfile to use old one.
PLS HELP
1 Answer
Jared Rader
Courses Plus Student 4,445 PointsYou're using Rails 4. Treehouse's Rails course uses Rails 3. Add the gem that is recommended, OR install Rails 3.
I'd recommend using Ruby Version Manager (rvm) which will allow you to install different versions of Rails and manage different gemsets: https://rvm.io/