I find it more convenient to check response for some requests from within console
>> app.put '/users/2/'
=> 500
But wasn’t able to find a way to specify request parameters. How I have to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to put or post to a URL there are also methods for that. You can copy/paste the parameters exactly as they are displayed in your Rails production log:
If you want to sent a custom header, you can add an optional third parameter:
Any of the get/post/put/delete methods will display their full log output on the console for you to examine. If you want to get information such as the response body returned, HTTP status or response headers these are easy too:
Source: http://andyjeffries.co.uk/articles/debug-level-logging-for-a-single-rails-production-request