Home
ttilley edited this page Sep 12, 2010
·
9 revisions
Welcome to the aasm wiki!
EDIT: Please use the aasm gem on gemcutter, which is the official release since the github → gemcutter switchover. This gotcha is not an issue with the official release
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