Ruby 1.8.7, Rails 2.1.0 API 文档
Posted by devon on July 14th, 2008 filed in Rails应用假定rdoc安装在:/usr/local/lib/ruby/1.8/rdoc
1,下载并解压jaxdoc(http://rubyforge.org/projects/jaxdoc/)
1 2 | sudo cp ajax_generator.rb /usr/local/lib/ruby/1.8/rdoc/generators sudo cp -R ajax /usr/local/lib/ruby/1.8/rdoc/generators/template |
2,生成rails 2.1文档
cd /usr/local/lib/ruby/gems/1.8/gems (gem安装路径)
1 | rdoc --op ~/doc/rails-2.1 --fmt ajax --exclude .*generator.* --exclude .*test.* --include actionmailer-2.1.0 activerecord-2.1.0 actionpack-2.1.0 activesupport-2.1.0 activeresource-2.1.0 rails-2.1.0 |
文档生成用户Home目录的doc下
3,生成ruby 1.8.7文档
下载对应的ruby版本源代码,并解压
rdoc –fmt ajax –op ~/doc/ruby-1.8.7
已生成文档下载:
ruby 1.8.6: http://doc.enjoyrails.com/api/ruby_api.tar.gz
ruby 1.8.7: http://doc.enjoyrails.com/api/ruby-1.8.7-p22.zip
rails 2.0.2: http://doc.enjoyrails.com/api/rails_api.tar.gz
rails 2.1.0: http://doc.enjoyrails.com/api/rails-2.1.zip
rails 2.2.2 http://doc.enjoyrails.com/api/rails-2.2.2.zip
下载地址更新
http://rapidshare.com/files/195797026/rails-2.2.2.zip.html
http://rapidshare.com/files/195799014/ruby_api.zip.html
Related posts:
- shoulda on rails 在新项目中配置shoulda rails shoulda_demo -d mysql cd shoulda_demo/ script/plugin install git://github.com/thoughtbot/shoulda.git...
- Nginx + Passenger 开发Rails应用 在Rails开发过程中,如果同时开发多个项目,需要经常切换,使用 script/server 去启动应用会比较麻烦,而采用nginx(或apache) + passenger可以节约时间,提高效率。 1、安装passenger 下载Passenger,目前最新的版本为2.2.2,并解压到passenger的安装目录: tar xzvf passenger-2.2.2.tar.gz...
- ruby on rails dictionary for macosx 在Dictionary中搜索API。 使用方法: 下载文档 解压至~/Library/Dictionaries/ 或 /Library/Dictionaries/ 打开Dictionary → Preferences, 选中ruby,...
Related posts brought to you by Yet Another Related Posts Plugin.
July 28th, 2008 at 10:56 AM
thanks
[Reply]