I am implementing a third party API for Shipworks in a Rails server and the Shipworks client app is posting an action param with Shipworks specific semantics.>
action
I fell into this trap today and came with this solution in controller method. It's Rails 4.1:
if request.method == "POST" action = request.request_parameters['action'] else action = request.query_parameters['action'] end