pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 507 forks source link

TypeError Exception: can't convert Hash into String #303

Open cis-pjain opened 10 years ago

cis-pjain commented 10 years ago

Hello All,

I am getting above error while trying to change my state.

My model is like as

class MyModel

state_machine :status, initial: :waiting do event :processing do transition any => :proces end event :refused do transition any => :refus end event :processed do transition any => :process end

end

Please help me ASAP

avgerin0s commented 10 years ago

Can you please write your code in a MD code block?