Sam Stephens: Free-spirited Software
Learnings, ponderings, and questions from my life as a software developer
Browse: Home / Ruby / Rails

Mass-assignment – don’t control access at the model level

By SamStephens on March 8, 2012

I followed with some interest the debate around the “mass assignment vulnerability” recently reported in Rails. I dislike the way the whole debate is couched assuming access control at the model level. When you are stating that an attribute cannot be assigned, you are stating that to assign this attribute from the controller, you can’t use the normal update_attributes method, and must update it explicitly.

Posted in Rails | Tagged Opinion, rails, ViewModel | Leave a response

Deploying database contents using Capistrano

By SamStephens on May 24, 2011

I run a pair of Ruby on Rails sites, http://janeallnatt.co.nz and http://postmoderncore.com. I use Capistrano to deploy updates to both of these sites. Once I built these sites and got Capistrano working, I realised that the database should be deployed as part of the Capistrano deploy.

Posted in Rails | Tagged Capristrano, Database, Deploy, rails, ruby | 2 Responses

Subscribe

Search

Categories

  • .NET
  • Android
  • C#
  • Javascript
  • Meta
  • MSBuild
  • Opinion
  • Ruby
    • Rails
  • Shell scripting
  • Wordpress

Archives

  • December 2012
  • May 2012
  • March 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • May 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010

Websites

  • A List Apart
  • The Daily WTF
  • Ars Technica

My other sites

  • On Twitter
  • On LinkedIn
  • On Stack Overflow

Blogroll

  • charlie.collins's blog
  • The Radioactive Yak
  • Android Developers Blog
  • Scott Hanselman's Computer Zen
  • ScottGu's Blog
  • Mark's Blog
  • Dare Obasanjo aka Carnage4Life
  • Ayende @ Rahien
  • The WHATWG Blog
  • Fabulous Adventures In Coding
  • Ajaxian
  • Tatham Oddie
  • Marcin On ASP.NET
  • Object Mentor Blog: Category Uncle Bob's Blatherings
  • Schneier on Security
  • CommonsWare

Copyright © 2013 Sam Stephens: Free-spirited Software.

Powered by WordPress and Hybrid.

The opinions expressed on this site are my own and do not necessarily represent those of my employer. Contact me.