|
|
|
|
|
by danneu
5251 days ago
|
|
When I was starting out, every tutorial seemed to assume that I even knew what "mass assignment" implied. Creating a bunch of bad things at once? Changing a lot of existing things in a bad way at once like their creator_id so a bad guy could access them? 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... |
|