Fix ActiveRecord:MissingAttributeError http://stackoverflow.com/a/6847501/38820