Ruby and RoR Offline Documentation
Ruby lang Documentation
- Online: Ruby documentation
- Offline: Download page
Ruby on Rails Documentation
- Online:
- Offline:
- Download latest version of rails from GitHub: https://github.com/rails/rails/archive/refs/heads/main.zip
- Unzip
- Run
rdoc sdoc
(searchable doc): documentation available indoc
Go the
guides
directory,bundle
and thenrake guides:generate:html
: Documentation available inoutput
As a script:
curl https://github.com/rails/rails/archive/refs/heads/main.zip \ -o rails-main.zip unzip rails-main.zip cd rails-main rdoc sdoc cd guides bundle rake guides:generate:html
Documenting your code
- RDoc Cheat Sheet