nathanfish.com

ecommerce, saas, and small business

Ruby Rails AASM gotcha

Maybe it’s in the documentation, I’m not sure. However, I spent way to much time trying to figure out why every time I saved my model it went back to the initial AASM state. Seems the event I had defined :update conflicts with rails own activity, so every time I updated the model, it went back to the initial :pending state. Opps.

  • Digg
  • del.icio.us
  • Facebook
  • LinkedIn
  • StumbleUpon
  • RSS

Tagged as + Categorized as RubyOnRails

Comments are closed.