On Jul 11, 8:12 pm, Josh <
josh.m.sha...@gmail.com> wrote:
> First, let me say that
api.rubyonrails.org is awesome. Whoever is hosting
> it - thank you. It blows all the other api tools out of the water in terms
> of usability. Yay!
>
> That said, how comehttp://
api.rubyonrails.org/v3.0.15doesn't show me the
> 3.0.15 docs? 3.0.x is still actively maintained and supported. What about
> any other old version. I'm sure some folks would find this very useful. It
> is exceedingly difficult to get decent-to-use docs for old versions of
> rails.
>
> Think we can make that happen somehow?
>
even if the powers that be don't want to make it happen
cd your_app
touch README.rdoc
rake doc:rails
This will dump the rdoc documentation for the rails version in doc/
api.
Unfortunately at the moment that will use a different template to
api.rubyonrails.org (if you're using an older version of rails it
might not matter)
You can hack things by:
- adding sdoc to your bundle
- edit documentation.rake (in the railties gem) and add
require 'sdoc' #at the top of the file
Change the options passed to rdoc in the rails task
rdoc.options << '--line-numbers'
rdoc.options << '-f' << 'sdoc'
rdoc.options << '-T' << 'rails'
rdoc.options << '-e' << 'UTF-8'
Remove doc/api, rerun rake doc:api and you should have api docs that
look like the ones on
api.rubyonrails.org (you need to serve them
through an actual web server (e.g. thin -A file start), the links
don't work when accessed via file:/// urls)
You can generate the guides too. First check that you have the
RedCloth gem in your bundle. then run rake doc:guides and all the
guides will be generated in doc/guides
> awarehttp://
guides.rubyonrails.org/v2.3.8/is available, but that's just
> because it's ingrained. As far as I can tell it's not readily linked to
> anymore. Are there other versions of the guides?
The guides front page links to
http://guides.rubyonrails.org/v2.3.11
Seems like you can pop any 3.1.x or 3.2.x version number in there
Fred