sserdyuk
2009-Feb-13 23:25 UTC
acts_as_state_machine: showing error messages on transition denied by guard
I am looking into using acts_as_state_machine plugin in a project. What completely bums me is that all transition guards are completely silent, i.e. if a transition is denied based on something, there''s no built in way to vent it to the user. I am sure I am not the only one who sees that as a problem. Anybody developed a "best practice" solution for this situation? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Koziarski
2009-Feb-14 01:56 UTC
Re: acts_as_state_machine: showing error messages on transition denied by guard
> I am looking into using acts_as_state_machine plugin in a project. > What completely bums me is that all transition guards are completely > silent, i.e. if a transition is denied based on something, there''s no > built in way to vent it to the user. I am sure I am not the only one > who sees that as a problem. Anybody developed a "best practice" > solution for this situation?This is kinda the wrong list for that question and I''m not sure if it''ll get an answer. But rick was doing some work on pulling state machines into active model, perhaps he has some ideas about enhancing the api? -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---