I can do
sudo gem rdoc activerecord --no-ri
and
sudo gem rdoc actionpack --no-ri
both of which give me good docs.
But
sudo gem rdoc rails --no-ri
gives me pretty much nothing, as the Rails gem itself is really just a holder for the others. How can I generate the equivalent of http://api.rubyonrails.org/?
If you installed rails with the rdoc (sudo gem install rails) You can access it via
From the Rails project Rakefile
The easiest I found was to just download them from railsapi.com and unpack the file into
/Library/Ruby/Gems/1.8/doc/rails-2.3.3/rdoc/
Run the command
bundle exec rdoc
on command line.It will generate all documentation of your code.