Error in API Documentation
Reported by Jon Crawford | September 27th, 2008 @ 12:16 PM
I noticed an error in the API that may confuse some people.
state_machine :state, :initial => 'idling' do
end
Yet, the example shows the initial state to be 'parked'.
vehicle = Vehicle.create # => #<Vehicle id: 1, seatbelt_on: false, state: "parked">
Thanks for the plugin!
Comments and changes to this ticket
-
Aaron Pfeifer October 4th, 2008 @ 06:21 PM
- → State changed from new to open
-
Aaron Pfeifer October 4th, 2008 @ 06:25 PM
- → State changed from open to resolved
(from [c02e3dc02b1a6749a571652e0ba3ad9572658be8]) Fix state machine examples in README to match output. [#2 state:resolved] http://github.com/pluginaweek/st...
-
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Adds support for creating state machines for attributes within a model
