#2 √ resolved
Jon Crawford

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

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

People watching this ticket