Posts Tagged ‘acts_as_state_machine’

Ruby’n Rails AASM or state machine

I wanted to use a state machine plugin for my Order model and found that ttilley-aasm was a good fit for me. Here is how I installed it: RAILS_ROOT/config/environmet.rb config.gem ‘ttilley-aasm’, :source => ‘http://gems.github.com’, :lib => ‘aasm’ # rake gems:install # ./script/generate migration add_aasm_state_to_Order aasm_state:string # rake db:migrate And now how I test that it [...]

Continue reading »

Follow

Get every new post delivered to your Inbox.