Rails "action" params key conflict Rails "action" params key conflict ruby ruby

Rails "action" params key conflict


Its awkward to use this, but if ever its required, you can get the info using:

 request.POST


Yes, you can. According to How to not use Rails action parameter in controller , you can get it by:

if request.method == "POST"  action = request.request_parameters['action']else  action = request.query_parameters['action']end