From: Aldric Giacomoni Date: 2009-12-11T01:44:14+09:00 Subject: Re: strange StateMachine behaviour ErkA wrote: > hello I've strange problem with state machine > > in my model > > state_machine :user_state, :initial => :unconfirmed do > state :unconfirmed, :value => 0 > state :confirmed, :value => 1 > state :trusted, :value => 2 > > event :verify do > transition :unconfirmed => :confirmed > end > > event :trust do > transition [ :unconfirmed, :confirmed] => :trusted > end > end > ----------- > > what Im doing wrong or where is the problem? I second what Brian said. What -is- this? Also, you're not actually using :user_state anywhere. What good is it? -- Posted via http://www.ruby-forum.com/.