Could you explain in detail what the :before_save and :before_create Ruby on Rails callbacks are, and what they have to do with Rails validations?
:before_save
:before_create
before_create vs before_save :on => :create
before_create
before_save :on => :create
Sometimes you have to be careful of the order of the callbacks
See here for more details: http://pivotallabs.com/activerecord-callbacks-autosave-before-this-and-that-etc/