small medium large xlarge

05 Mar 2017, 17:05
Hilliard M. Scott (1 post)

In Chapter 14 14.4 in message.rb, page 239.

How can I fix the message model to not use attr_accessible. (or replace it with what)

I tried using protected_attributes gem, but that caused even more backward compatibility problems. The newer versions of Rails suggest using strong parameters, but I don’t know where these go without a message controller.

I’m pretty sure you’re going to say “use the versions suggested in the Gemfile”, but I have no interest in using deprecated versions in 2017.