json - Rails active resource: how to send post parameters in the request body and not as query strings? -


i calling post request using rails activeresource, parameters sent query string , result called url long , webrick::httpstatus::requesturitoolarge exception.

so need send parameters in request body instead, couldn't find how this.

thanks lot

to send post request in activeresource should reference the documentation

for example can this

#entity.post(custom_method_name, options = {}, body = '') company.post(:add_role, nil, {user_id: 1, role_id: 2}.to_json) 

tell me if need else.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -