我學習Rails和嘗試使用狀態機,但我不能爲狀態初始化值variable..can誰能幫我 class Primer < ActiveRecord::Base
extend StateMachine::MacroMethods
state_machine :initial => :data do
event :ignite do
transition
好吧我確定我沒有正確使用狀態機,但這裏是示例代碼的子集。這是曾經是bbvcommon.StateMachine的Appccelerate.StateMachine。 fsm.In(State.Idle)
.ExecuteOnEntry(() => {
// wake up and check if there are people still standing and if