Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is ostensibly why attr_accessible has a "role" parameter.


Yes, however it's also worth noting that Rails core has acknowledged the awkwardness of relying solely on model-level protection for vulnerabilities that should be nipped in the bud at the controller level. Rails 4 will include DHH's new strong_parameters gem that allows params to be filtered proactively on every controller. This will of course help prevent a much broader class of vulnerabilities than ActiveRecord bugs.

http://rubysource.com/rails-4-quick-look-strong-parameters/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: