Posts Tagged ‘documentation’

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.