WEBrick::HTTPStatus::LengthRequired error when accessing create method in controller

I got this when I did a POST with an empty body. I was using curl.

Something like:

curl -X POST http://url/

I added -d ” and it cleared up the issue.

curl -X POST http://url/ -d ''

In your case, you probably need to add some content to a :body => ” attribute in HTTParty.post

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)