Http://api.rubyonrails.org & http://guides.rubyonrails.org/
UseRuby on Rails
Development is certainly not unfamiliar with these two websites. I believe that newbie and laruence can find the information they need from above.
Of course, we can access the above Web site to view it online, but sometimes the speed problem or the inability to access the Internet is still the most constant. It would be great if it can be used offline.
The following describes how to get these two items to your local machine. (You can also get them to mobile terminals, for exampleIPad
OrIPhone
. Personal experienceGoodreader
Viewing the Guide works well, and it is inconvenient to query the API .)
1. Offline rails guides
First, create a rails application called railsguides.
Rails new railsguides
Add redcloth to gemfile.
Gem 'redbr'
Run bundle to complete installation
Next, run the following command:
Rake DOC: Guides
Go to the doc directory and find your guides.
2. Offline rails API
Rails provides us with the method to generate doc, but I prefer this version for ease of searching. Go directly to http://railsapi.com/to download the file. The ruby API is provided at the same time and can be customized.
Conclusion
I personally like to put the API and guides under the project directory, and then create bookmarks for the index in the browser for convenient development and viewing.
PS: the original article address is unknown