Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Dynamic attr_accessible

#237 Dynamic attr_accessible

Oct 25, 2010 | 9 minutes | Security, Models, Rails 3.0
It is important to use attr_accessible for security with mass assignment, but what if you need it to be dynamic based on user permissions? See how in this episode.
  • Download:
  • source codeProject Files in Zip (108 KB)
  • mp4Full Size H.264 Video (16.7 MB)
  • m4vSmaller H.264 Video (10.7 MB)
  • webmFull Size VP8 Video (25.9 MB)
  • ogvFull Size Theora Video (24.3 MB)