Open louaabtj opened 10 years ago
Hi, Melo/louaabtj!
I agree - that would be a really cool feature to have! I don't really know how to extract that information in a dynamic typed language, though. Do you have any suggestions on how it could be done?
Oh, and BTW, take a look at respond_with, which might make your controller even prettyer: http://archives.ryandaigle.com/articles/2009/8/6/what-s-new-in-edge-rails-cleaner-restful-controllers-w-respond_with
Hi Austvik, Thanks for the tip. Well I tried to retrieve that from the responder attribute from the Controller object, but as beginner in Rails I don't know how.
I would like to create a documentation file for RESTful Ruby on Rails application. This project helped me to retrieve the HTTP paths, verbs and also the parameters. For getting the content type of responses and request, I tried with it and couldn't get any entry.
*I using Rails 4.1 My controller is as the following: