Coder Social home page Coder Social logo

Comments (4)

mbleigh avatar mbleigh commented on May 31, 2024

I believe this has been closed by a recent push. Let me know if it hasn't.

from grape.

bmorton avatar bmorton commented on May 31, 2024

I just started exploring trying to make this work and I'm running into problems, too. It seems like the same as above, trying to do some digging to see what exactly is going on, but it would make sense for Rack to be looking for application/x-www-form-urlencoded or multipart/form-data (I can see that ARes is sending application/json).

My params hash only has version and format in it.

from grape.

arubin avatar arubin commented on May 31, 2024

I am using the latest version of Grape and have this exact same problem. Inside the post response in my api file, instead of using the params hash to build a new model, I end up having to use
temp_params = env["action_dispatch.request.request_parameters"]

from grape.

bmorton avatar bmorton commented on May 31, 2024

I resorted to using that method as well about a month ago. Its been working fine except in testing, so you end up having to do: order_params = request.env['action_dispatch.request.request_parameters'] || params

from grape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.