Creating your own Rails API documentation
The second edition of the “Agile Web Development with Rails” book has the following tip for creating the Rails API docs from the latest gem version on your machine (or you could get the edge version by using rake rails:freeze:edge).
$ rails dummy_app $ cd dummy_app $ rake rails:freeze:gems $ echo >vendor/rails/activesupport/README $ rake doc:rails
After it completes simply copy the api folder inside the doc directory (and then you can delete the dummy_app).
Another related tip for those who haven’t yet discovered the site gotapi.com is a great reference with find-as-you type api searching.
About this entry
You’re currently reading “Creating your own Rails API documentation,” an entry on Slash Dot Dash
- Published:
- 07.29.07 / 1pm
- Category:
- Ruby on Rails

Comments are closed
Comments are currently closed on this entry.