Re:How I Learned Enough Ruby On Rails In 12 Weeks To Launch ...
by sc00ter on Saturday January 28, 2012 @07:14AM
(#3521910)
Worse still, I started off with Beginning Rails 3 by Apress, and it makes only one obscure reference to attr_accessible, and not in the context of security, doesn't mention mass assignment at all, and has no chapter on even basic security. Beginners need to learn this stuff early, so Apress' oversight is unforgivable. mhartl OTOH is to be applauded.
I think "mass assignment" and "attr_accessible" in tutorials should always link to the API documentation[1] that explains the implications and the tools at your disposal + example code.
[1]: http://api.rubyonrails.org/classes/ActiveModel/MassAssignmen...