Take the 2008 Git User's Survey and help out! [ hide ]

public
Rubygem
Description: AASM - State machines for Ruby classes
Homepage: http://rubyi.st/aasm
Clone URL: git://github.com/rubyist/aasm.git
Search Repo:
Click here to lend your support to: aasm and make a donation at www.pledgie.com !

Comments for aasm   feed

spicycode commented on rubyist/aasm 13 days ago
Comment in 54c631e:

You could try in yours using the global namespace (ie the one from simply versioned). ::Version.

jerome commented on rubyist/aasm 13 days ago
Comment in 54c631e:

Mmmm. How to avoid this VERSION module ? Got a "Version class": http://github.com/jerome/simply_versioned/tree/master/lib/version.rb I cannot use because the rubyist-aasm gem is loaded first :( Then I get errors such as
<pre>
>> Post.last.versioned?
LoadError: Expected /opt/local/lib/ruby/gems/1.8/gems/rubyist-aasm-2.0.2/lib/version.rb to define Version
</pre>

zilkey commented on rubyist/aasm 3 months ago
Comment in bd788a5:

This doesn’t work as expected for me – here’s what I’ve done:
<%= f.select :aasm_state, MyModel.aasm_states_for_select %>
This generated the list correctly, but does not set the correct option as being selected because aasm_states_for_select returns symbol values, but rails checks against string values:
["Published", :published], ["Deleted", :deleted]]
I think this should return 2 strings and I can write the patch. Any objections?
Jeff