Offline rails API method summary

Source: Internet
Author: User
Tags ruby on rails

Http://api.rubyonrails.org & http://guides.rubyonrails.org/

UseRuby on RailsDevelopment 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 exampleIPadOrIPhone. Personal experienceGoodreaderViewing 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.