Monday, June 18, 2012

Controlling Rails mass-assignment with whitelists and :as

Rails 3.2 has some flexible features for controlling mass-assignment. A little Gist I put together demonstrates:

 whitelisting and roles: https://gist.github.com/2948700