Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cis-pjain opened this issue Feb 20, 2014 · 1 comment
Open

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

cis-pjain opened this issue Feb 20, 2014 · 1 comment

Comments

@cis-pjain
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants