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.
-
$ cd /tmp
-
$ rails doc
-
$ cd doc
-
$ rake rails:freeze:gems
-
$ rake doc:rails
-
$ rake doc:guides
-
$ sudo mv doc /opt/rails-doc
After completing these steps open browser and type
-
file:///opt/rails-doc/api/index.html //api.
-
file:///opt/rails-doc/guides/index.html // guide related to rails development.