Locally generating rails documentation in mac & linux.

January 30, 2009 written by sdhar .

It is very easy to build a local copy of rails documentation and guides. Open terminal and type these commands.

  1. $ cd /tmp
  2. $ rails doc
  3. $ cd doc
  4. $ rake rails:freeze:gems
  5. $ rake doc:rails
  6. $ rake doc:guides
  7. $ sudo mv doc /opt/rails-doc

After completing these steps open browser and type

  1. file:///opt/rails-doc/api/index.html //api.
  2. file:///opt/rails-doc/guides/index.html // guide related to rails development.

Tags:

1 Comment

  1. avatar Tom Says:

    Great man.Thanks a lot.

Leave a Reply