Skip to content
mindtonic edited this page Sep 12, 2010 · 9 revisions

Welcome to the aasm wiki!

Rails Installation Gotcha

If you want to declare as a gem dependency use the following:

config.gem "rubyist-aasm", :source => "http://gems.github.com", :lib => 'aasm'

If you leave off the :lib => ‘aasm’ it won’t be able to include the gem properly.

Also, the default state column is called ‘aasm_state’, not just ‘state’. You can define the database table column that the state machine uses by including:

aasm_column :state