I have a request body as a string... Something like body = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name="test"\r\nteeeeest------WebKitFormBoundary7MA4YWxkTrZu0gW--". I'd like to extract the parameters in this body. How can I do that?
I kinda want to construct a request object if that's possible or just extract the parameters if that'd be easier
Radar: Thanks for the pointer... I guessed that I should do Rack::MockRequest.env_for and pass my string in place of the file then use Rack::Multipart.parse_multipart(env) but it returns nil
Hi, I'm trying to setup a test app on Heroku rails 5.0.0.beta1.1. I'm having a problem getting ActionCable to work. Console says WebSocket connection to 'wss://sustain-game.herokuapp.com/cable' failed: WebSocket is closed before the connection is established. Does anyone have an idea about this?
Hi, If I have a Post model, a User model and a Comment model, the Comment belongs to a user and a post. I want to be able to see all comments on a post and all comments of a user. Is there some known best practice for that scenario?