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
Post a Comment