pluginaweek / state_machine

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

custom actions #321

Open marianpolek opened 10 years ago

marianpolek commented 10 years ago

Hello,

i have a question about custom actions. For example i have a few states , one of the states is 'summary' step/state. And there are fields , which can produce errors on page submit. But how can be done custom action, which will redirect to another state , only if summary will get errors? because i want to have two identical steps redirecting between selfs for example from summary to summary2 and from summary2 to summary.

thank you very much!