This is a followup based on the great answers in RESTful resource for a State Machine and this question is probably more rest related than State Machine
I am using the Statesman Gem in a Rails 4.2 App. I have a Service model and an associated state_transitions model that stores the transitions through Active Record.
A transiton method is shown in the Statesman Docs as such: Order.first.state_machine.transition_to!(:cancelled)
I know this is not even close
In my case I have button_to 'ok', service_path, action: "#{service}.transition_to!(:received)"
In my Service model transition_to is delegated to the state machine
How can I submit the request to change the state through my button_to form?