如何为(所有)Rails 生成 RDOC? [英] How do I generate RDOC for (all of) Rails?

查看:40
本文介绍了如何为(所有)Rails 生成 RDOC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能做到

sudo gem rdoc activerecord --no-ri

sudo gem rdoc actionpack --no-ri

两者都给了我很好的文档.

both of which give me good docs.

但是

sudo gem rdoc rails --no-ri

几乎没有给我什么,因为 Rails gem 本身实际上只是其他人的一个持有者.如何生成 http://api.rubyonrails.org/ 的等效项?

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/?

推荐答案

我发现最简单的方法是从 railsapi.com 下载它们 并将文件解压到 /Library/Ruby/Gems/1.8/doc/rails-2.3.3/rdoc/

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/

这篇关于如何为(所有)Rails 生成 RDOC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆