Rails

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(安装)
 
(未显示2个用户的77个中间版本)
第1行: 第1行:
[url=[http://www.zousun.com.cn 金相显微镜]
+
{{SeeWikipedia|Ruby on Rails}}
[url=[http://www.dinmo.cn/post/金相显微镜.html 金相显微镜]
+
 
[http://yiwei.dinmo.cn/u/baidu123/archives/2007/2007428135336.html 金相显微镜]
+
[[Image:Rails-90x90.png|right]]
[http://www.1foo.cn/u/baidu123/archives/2007/547.html 金相显微镜]
+
 
[http://wangwei.dinmo.cn/u/898/archives/2007/911.html 金相显微镜]
+
Ruby on Rails
[http://junfang.dinmo.cn/u/747/archives/2007/765.html 金相显微镜]
+
 
[http://qinchuan.dinmo.cn/u/baidu123/archives/2007/1022.html 金相显微镜]
+
==简介==
[http://fangning.dinmo.cn/u/baidu123/archives/2007/1055.html 金相显微镜]
+
[[Ruby]] on [[Image:Rails.jpeg]] 是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上。它被宣传为现有企业框架的一个替代,而它的目标,简而言之,就是让生活,至少是 Web 开发方面的生活,变得更轻松。
[http://zongshi.dinmo.cn/u/baidu123/archives/2007/1045.html 金相显微镜]
+
 
[http://xiaobin.dinmo.cn/u/baidu123/archives/2007/858.html 金相显微镜]
+
[[Image:rails-web-server.jpg|right|Rails可在以下Web Server部署]]
[http://www.google.dinmo.cn/u/baidu123/archives/2007/1564.html 金相显微镜]
+
 
[http://changchun.dinmo.cn/u/baidu123/archives/2007/1225.html 金相显微镜]
+
==功能==
[http://xi-an.dinmo.cn/u/1593/2249.html 金相显微镜]
+
 
[http://beijing.dinmo.cn/u/1871/2162.html 金相显微镜]
+
==开发指南==
[http://www.fdwx.net/blog/u/baidu123/archives/2007/166.html 金相显微镜]
+
*[[Ruby on Rails on Debian]]
[http://www.bjp98.com/Blog/u/baidu123/archives/2007/156.html 金相显微镜]
+
*[[Install Ruby Rails Lighttpd MySQL on Ubuntu or FreeBSD]]
[http://www.cqybzx.com.cn/blog/u/baidu123/archives/2007/441.html 金相显微镜]
+
*[[Emacs support for Ruby and Rails]]
[http://www.gz-travel.net/blog/u/426/archives/2007/420.html 金相显微镜]
+
*[[Huihoo Ruby Applications]]
[http://www.easykan.com/blog/user1/baidu123/archives/2007/944.html 金相显微镜]
+
*[[RadRails]] - A Ruby on Rails IDE
[http://xy.jxgdw.com/blog/user1/baidu123/archives/2007/1553.html 金相显微镜]
+
*[http://yehudakatz.com/ Yehuda Katz] 的博客: Katz 是 Rails 的核心贡献者, 同时也是 [[Merb]] 和 Rails 整合的首席架构师.
[http://www.longxss.com/blog/u/baidu123/archives/2007/1329.html 金相显微镜]
+
 
[http://www.51garlic.com/blog/u/baidu123/archives/2007/861.html 金相显微镜]
+
==深入Rails==
[http://www.zhukuai.com/blog/u/baidu123/archives/2007/580.html 金相显微镜]
+
[[文件:rails-logo.png|right|Rails]]
[http://www.9com.cn/blog/u/1430/archives/2007/1562.html 金相显微镜]
+
*[http://opinion.rubytao.com/ruby/rails-source-code-reading Rails框架代码解读]
[http://www.zyka.cn/blog/u/baidu123/archives/2007/193.html 金相显微镜]
+
Rails组件:
[http://www.zhixiaowang.com/blog/u/1005/archives/2007/2028.html 金相显微镜]
+
*Action Controller
[http://blog.cntca.com/blog/u/1016/archives/2007/611.html 金相显微镜]
+
*Action View
[http://www.cgmgc.com/blog/u/387/archives/2007/747.html 金相显微镜]
+
*Active Record
[http://www.nxflowers.com/blog/u/462/archives/2007/171.html 金相显微镜]
+
*Action Mailer
[http://www.34law.com/blog/u/baidu123/archives/2007/526.htm 金相显微镜]
+
*Active Resource
[http://www.wceinfo.com/blog/u/baidu123/archives/2007/296.html 金相显微镜]
+
*Railties
[http://www.xlian.cn/blog/u/725/archives/2007/252.html 金相显微镜]
+
*Active Support
[http://www.curoo.com/blog/user1/baidu123/archives/2007/10840.html 金相显微镜]
+
 
[http://www.dosky.cn/blog/u/349/archives/2007/357.html 金相显微镜]
+
==安装==
[http://www.cangbaotu.com/blog/user1/baidu123/archives/2007/1879.html 金相显微镜]
+
[[RubyGems]] is a package manager for Ruby.
[http://www.sec168.com/blog/blogsec/baidu123/archives/2007/1091.html 金相显微镜]
+
gem install rails
[http://www.laren.cn/blog/2007/baidu123/archives/2007/14938.html 金相显微镜]
+
or gem install -v=5.2 rails
[http://blog.cnhubei.com/user2/baidu123/archives/2007/17447.html 金相显微镜]
+
rails new myapp
[http://baidu123c.hblog.net/archives/2007/5673.shtml 金相显微镜]
+
cd myapp; rails server
[http://blog.sg87.cn/user1/baidu123/archives/2007/5110.html 金相显微镜]
+
http://localhost:3000
[http://www.hzvhost.com/blog/user1/baidu123/archives/2007/3706.html 金相显微镜]
+
注:不用apt-get install rails 因版本较旧
[http://www.ictee.net/blog/u/baidu123/archives/2007/525.html 金相显微镜]
+
 
[http://www.chinaciia.com/Blog/user1/baidu123/archives/2007/1212.html 金相显微镜]
+
旧版:安装 Ruby:
[http://www.hksycxx.com/MYblog/user1/baidu123/archives/2007/1264.html 金相显微镜]
+
 
[http://blog.taoyo.cn/pmem/baidu123/archives/2007/6797.html 金相显微镜]
+
Linux/UNIX
[http://www.128com.cn/blog/user1/baidu123/archives/2007/1244.html 金相显微镜]
+
http://download.huihoo.com/ruby/ruby-1.8.6.tar.gz
[http://bk.ygxxg.com/1/baidu123/archives/2007/666.htm 金相显微镜]
+
tar xzvf ruby-1.8.6.tar.gz
[http://www.zsmhf.com/blog/u/484/archives/2007/479.html 金相显微镜]
+
cd ruby-1.8.6
[http://www.yocsef-sz.org.cn/blog/user1/baidu123/archives/2007/1947.html 金相显微镜]
+
./configure –prefix=/usr/local/ruby
[http://www.sxsz.net.cn/blog/sxsz/baidu123/archives/2007/167.html 金相显微镜]
+
make && make install
[http://blog.arsenal.com.cn/user1/baidu123/archives/2007/1085.html 金相显微镜]
+
修改 .bashrc
[http://www.sjsknet.com/bbs/u/baidu123/archives/2007/617.html 金相显微镜]
+
export PATH=/usr/local/ruby/bin:$PATH
[http://www.025life.net/blog/u/baidu123/archives/2007/498.html 金相显微镜]
+
http://download.huihoo.com/ruby/rubygems-0.8.11.zip
[http://www.hzzs.net/oblog/user1/baidu123/archives/2007/3131.html 金相显微镜]
+
unzip rubygems-0.8.11.zip
[http://baidu123c.cqnews.net/archives/2007/11141.html 金相显微镜]
+
cd rubygems-0.8.11
[http://www.cb365info.com/blog/u/112/archives/2007/200.html 金相显微镜]
+
ruby setup.rb
[http://blog.tlabc.net/blog/u/baidu123/archives/2007/353.html 金相显微镜]
+
gem install rake
[http://www.bjwzfh.com/blog/u/baidu123/archives/2007/131.html 金相显微镜]
+
Windows
[http://www.5318.cn/blog/user/baidu123/archives/2007/12784.html 金相显微镜]
+
http://download.huihoo.com/ruby/ruby186-26_rc2.exe
[http://www.simiao.net/blog/u/baidu123/archives/2007/216.html 金相显微镜]
+
 
[http://www.zxxw.gov.cn/blog/u/221/archives/2007/463.html 金相显微镜]
+
==Rails 6==
[http://www.11cai.com/blog/u/baidu123/archives/2007/124.html 金相显微镜]
+
[https://weblog.rubyonrails.org/2020/12/9/Rails-6-1-0-release/ Rails 6.1]
[http://www.qx001.com/blog/u/baidu123/archives/2007/153.html 金相显微镜]
+
 
[http://zqnews.zqdns.net/blog/u/165/archives/2007/221.html 金相显微镜]
+
==Rails 5==
[http://www.chncec.com/shequ/blog/u/baidu123/archives/2007/95.html 金相显微镜]
+
 
[http://www.cqnczx.com/blog/u/baidu123/archives/2007/186.html 金相显微镜]
+
==Rails 4==
[http://www.pcbsky.com/blog/u/8256/archives/2007/199.html 金相显微镜]
+
 
[http://gaoj.cn/blog/user1/baidu123/archives/2007/792.html 金相显微镜]
+
==Rails 3==
[http://www.xbee.com.cn/blog/user/baidu123/archives/2007/542.html 金相显微镜]
+
 
[http://house.373.cn/blog/u/255/archives/2007/214.html 金相显微镜]
+
==Rails 2==
[http://www.chceo.com/blog/u/baidu123/archives/2007/209.html 金相显微镜]
+
按顺序安装
[http://www.lxez.com/blog/u/baidu123/archives/2007/299.html 金相显微镜]
+
http://download.huihoo.com/rails/rails-2.1.0.zip
[http://www.successba.com/blog/u/341/archives/2007/336.html 金相显微镜]
+
gem install activesupport-2.1.0.gem
[http://2332.cn/blog/u/baidu123/archives/2007/582.html 金相显微镜]
+
gem install activerecord-2.1.0.gem
[http://edu.jsw.com.cn/blog/user1/16161/archives/2007/716.html 金相显微镜]
+
gem install actionpack-2.1.0.gem
[http://www.powergis.net/blog/u/271/archives/2007/649.html 金相显微镜]
+
gem install actionmailer-2.1.0.gem
[http://www.zcsd.cn/blog/url/199/archives/2007/280.htm 金相显微镜]
+
gem install activeresource-2.1.0.gem
[http://www.ladytoo.com/blog/myweb/7728/archives/2007/13049.html 金相显微镜]
+
gem install rake-0.8.1.gem
[http://www.nn-info.com/blog/u/baidu123/archives/2007/12011.html 金相显微镜]
+
gem install rails-2.1.0.gem 
[http://www.chinawife.com.cn/blog/u/534/archives/2007/468.html 金相显微镜]
+
rails -v 显示Rails 2.1.0 :)
[http://www.ciqi.org/blog/u/baidu123/archives/2007/272.html 金相显微镜]
+
或者
[http://club.yc.nx.cn/blog/user1/baidu123/archives/2007/2473.html 金相显微镜]
+
gem install -v=2.1.0 rails
[http://www.dxhome.cn/blog/dx/335/archives/2007/535.html 金相显微镜]
+
 
[http://wangwei.dinmo.cn/u/906/archives/2007/919.html 金相显微镜]
+
==Rails 1==
[http://www.025life.net/blog/u/baidu12/archives/2007/536.html 金相显微镜]
+
安装 Rails:
[http://www.zgshzx.com/oblog313/user1/baidu12/archives/2007/1082.html 金相显微镜]
+
http://download.huihoo.com/rails/rails-1.2.3.zip
[http://www.changdets.com/blog/u/baidu12/archives/2007/628.html 金相显微镜]
+
按顺序安装
[http://www.hzzs.net/oblog/user1/baidu12/archives/2007/3175.html 金相显微镜]
+
gem install activesupport-1.4.2.gem
[http://www.ditie.net/blog/user1/baidu12/archives/2007/1331.html 金相显微镜]
+
gem install activerecord-1.15.3.gem
[http://www.1foo.cn/u/baidu12/archives/2007/568.html 金相显微镜]
+
gem install actionpack-1.13.3.gem
[http://www.xiangyujipiao.com/blog/u/baidu12/archives/2007/1109.html 金相显微镜]
+
gem install actionmailer-1.3.3.gem
[http://wangwei.dinmo.cn/u/945/archives/2007/964.html 金相显微镜]
+
gem install actionwebservice-1.2.3.gem
[http://junfang.dinmo.cn/u/790/archives/2007/807.html 金相显微镜]
+
gem install rails-1.2.3.gem 
[http://qinchuan.dinmo.cn/u/baidu12/archives/2007/1069.html 金相显微镜]
+
rails -v 显示Rails 1.2.3 :)
[http://fangning.dinmo.cn/u/baidu12/archives/2007/1102.html 金相显微镜]
+
 
[http://zongshi.dinmo.cn/u/baidu12/archives/2007/1093.html 金相显微镜]
+
可能出现的问题: undefined method `gem' for main:Object, 可能是gem的版本太低,升级一下 gem
[http://xiaobin.dinmo.cn/u/baidu12/archives/2007/900.html 金相显微镜]
+
# gem update --system
[http://changchun.dinmo.cn/u/baidu12/archives/2007/1269.html 金相显微镜]
+
 
[http://www.qqttv.cn/blog/u/413/archives/2007/364.html 金相显微镜]
+
[http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP Fast CGI and Apache2 for Windows XP]
[http://blog.e1630.com/u/706/archives/2007/2743.html 金相显微镜]
+
 
[http://www.qqttv.cn/blog/u/413/archives/2007/364.html 金相显微镜]
+
卸载 Rails 1.2.3
[http://blog.hunanw.com/u/baidu12/archives/2007/11760.html 金相显微镜]
+
gem uninstall Rails
[http://www.zsmhf.com/blog/u/525/archives/2007/518.html 金相显微镜]
+
gem uninstall Rake
[http://www.confhr.com/blog/user1/baidu12/archives/2007/1552.html 金相显微镜]
+
gem uninstall Actionwebservice
[http://www.hzvhost.com/blog/user1/baidu12/archives/2007/3740.html 金相显微镜]
+
gem uninstall Actionmailer
[http://blog.soxu.cn/u/baidu12/archives/2007/1533.html 金相显微镜]
+
gem uninstall Actionpack
[http://www.ufstone.com/blog/u/baidu12/archives/2007/619.html 金相显微镜]
+
gem uninstall Activesupport
[http://www.luohe.com.cn/blog/u/baidu12/archives/2007/596.html 金相显微镜]
+
gem uninstall Activerecord
[http://blog.urmclub.com/user1/4710/archives/2007/15402.html 金相显微镜]
+
 
[http://blog.thldl.org.cn/user1/29814/archives/2007/41954.html 金相显微镜]
+
==Simple Weblog==
[http://www.blog.q5.cn/blog/13796/archives/2007/19872.shtml 金相显微镜]
+
[[Image:rubyweblog.png|thumb|right|Sample Weblog]]
[http://www.zhuba.com/user1/baidu12/archives/2007/3657.html 金相显微镜]
+
强力推荐这个例子 :)
[http://zhxiuch.xsjs.cn/d/7437/33156.shtml 金相显微镜]
+
* Use Rake tasks and migration files to create and update database tables
[http://www.cncmc.com/blog/user1/baidu12/archives/2007/785.html 金相显微镜]
+
* Use the scaffold generator to generate a basic create, read, update, delete (CRUD) database web application
[http://diary.henanedu.com/user1/baidu12/archives/2007/290051.shtml 金相显微镜]
+
* Edit views to fine tune the web pages
[http://www.wzrblog.com/user1/baidu12/archives/2007/17448.html 金相显微镜]
+
* how to build relationships (one-to-one and one-to-many) between models
[http://www.yocsef-sz.org.cn/blog/user1/baidu12/archives/2007/2032.html 金相显微镜]
+
逐步创建的表结构:
[http://blog.popnovel.com/user1/baidu12/archives/2007/1398.html 金相显微镜]
+
001_create_posts.rb
[http://9608.blog.e23.cn/user2/12224/archives/2007/89576.shtml 金相显微镜]
+
002_add_body_to_post.rb // 加入新的字段
[http://www.inblog.cn/user6/baidu12/archives/2007/10909.shtml 金相显微镜]
+
003_create_comments.rb // 创建新的表
[http://www.yu100.com/blog/user1/baidu12/archives/2007/1332.html 金相显微镜]
+
*Creating a Ruby Weblog in 10 Minutes http://www.netbeans.org/kb/61/ruby/rapid-ruby-weblog.html
[http://www.fish2008.com/blog/user1/baidu12/archives/2007/2663.html 金相显微镜]
+
*Building Relationships Between Rails Models http://www.netbeans.org/kb/60/ruby/model.html  
[http://www.ladytoo.com/blog/myweb/7745/archives/2007/13074.html 金相显微镜]
+
*Adding Ajax Support: http://www.netbeans.org/kb/60/ruby/ajax.html
[http://blog.cntca.com/blog/u/1069/archives/2007/673.html 金相显微镜]
+
 
[http://3800hk.cn/blog/baidu12/archives/2007/9165.html 金相显微镜]
+
==用户==
[http://www.21edu.com/blog/u/baidu12/archives/2007/1145.html 金相显微镜]
+
*[http://twitter.com/ Twitter]
[http://blog.998e.com/user1/764/archives/2007/1233.html 金相显微镜]
+
*[http://github.com/ GitHub]
[http://xiaojizhe.c0515.com/blog/u/baidu12/archives/2007/269.html 金相显微镜]
+
*[https://github.com/Shopify Shopify]
[http://www.i4u.com.cn/blog/u/baidu12/archives/2007/477.html 金相显微镜]
+
*[http://www.basecamphq.com/ Basecamphq]
[http://www.itu3g.com/blog/user1/baidu12/archives/2007/461.html 金相显微镜]
+
*http://www.43people.com/
[http://www.xlian.cn/blog/u/760/archives/2007/286.html 金相显微镜]
+
*http://www.43things.com/
[http://www.coldtea.cn/blog/user2/7058/archives/2007/21275.html 金相显微镜]
+
*http://www.43space.com/
[http://www.hzwchem.com/blog/u/baidu12/archives/2007/890.html 金相显微镜]
+
*http://www.8sheng.com/
[http://pbsfor.com/blog/u/baidu12/archives/2007/691.html 金相显微镜]
+
*http://www.soopie.com
[http://www.bjeee.com/bbs/oblog313/user1/332/archives/2007/529.html 金相显微镜]
+
*http://www.iease.com.cn/
[http://blog.sss999.com/u/baidu12/archives/2007/468.html 金相显微镜]
+
*http://www.flagr.com
[http://www.128com.cn/blog/user1/baidu12/archives/2007/1314.html 金相显微镜]
+
*http://www.odeo.com/
[http://bk.ygxxg.com/1/baidu12/archives/2007/689.htm 金相显微镜]
+
*http://www.myd2d.com/
[http://blog.arsenal.com.cn/user1/baidu12/archives/2007/1142.html 金相显微镜]
+
 
[http://www.chinajzw.cn/blog/user1/baidu12/archives/2007/698.html 金相显微镜]
+
==项目==
[http://www.laren.cn/blog/2007/baidu12/archives/2007/15010.html 金相显微镜]
+
[[文件:Mastodon-logo.png|right|Mastodon]]
[http://www2.aywll.cn/blog/u/baidu12/archives/2007/250.html 金相显微镜]
+
[[文件:Shopify-logo.png|right|Shopify]]
[http://www.gz-travel.net/blog/u/463/archives/2007/456.html 金相显微镜]
+
*[https://github.com/ekremkaraca/awesome-rails Awesome Rails] [[image:awesome.png]]
[http://www.data-stars.com/blog/u/baidu12/archives/2007/450.html 金相显微镜]
+
*[https://github.com/hothero/awesome-rails-gem Awesome Rails Gem] [[image:awesome.png]]
[http://www.zhukuai.com/blog/u/baidu12/archives/2007/615.html 金相显微镜]
+
*[https://github.com/orgs/Shopify/repositories?language=ruby Shopify @ GitHub] 可能是世界上最大的 [[Ruby]] & Rails 团队
[http://www.51inn.com/blog/u/baidu12/archives/2007/412.html 金相显微镜]
+
*[https://github.com/thoughtbot/suspenders Suspenders]
[http://www.xian-jiazhuang.cn/blog/u/507/archives/2007/403.html 金相显微镜]
+
*[https://github.com/RailsApps/rails-composer Rails Composer]
[http://blog.cnhubei.com/user2/baidu12/archives/2007/17654.html 金相显微镜]
+
*[[Mastodon]]
[http://ly.net0086.com/blog/web/baidu12/archives/2007/739.html 金相显微镜]
+
*[[Redmine]]
[http://www.chncec.com/shequ/blog/u/baidu12/archives/2007/105.html 金相显微镜]
+
*[[OpenProject]]
[http://www.pcbsky.com/blog/u/8306/archives/2007/218.html 金相显微镜]
+
*[[Spree commerce]]
[http://house.373.cn/blog/u/290/archives/2007/238.html 金相显微镜]
+
*[[diaspora]]
[http://www.xbee.com.cn/blog/user/baidu12/archives/2007/576.html 金相显微镜]
+
*[[Puma]]
[http://www.rasz.net/schoolweb/blog/u/baidu12/archives/2007/125.html 金相显微镜]
+
*[[Travis CI]]
[http://zqnews.zqdns.net/blog/u/191/archives/2007/244.html 金相显微镜]
+
*[[Radiant CMS]] - Content Management Simplified
[http://www.11cai.com/blog/u/baidu12/archives/2007/137.html 金相显微镜]
+
*[[LoginGenerator]]
[http://www.zxxw.gov.cn/blog/u/250/archives/2007/489.html 金相显微镜]
+
*[[Typo]] – Weblogging Engine
[http://www.simiao.net/blog/u/baidu12/archives/2007/245.html 金相显微镜]
+
*[[Hieraki2]] – Wiki Meets Online Doc System
[http://www.bjwzfh.com/blog/u/baidu12/archives/2007/143.html 金相显微镜]
+
*[[Mongrel]]
[http://blog.tlabc.net/blog/u/baidu12/archives/2007/382.html 金相显微镜]
+
*[[RForum]]
[http://xdy.js.cn/blog/user1/baidu12/archives/2007/19708.html 金相显微镜]
+
*[[ActiveScaffold]]
[http://baidu12.cqnews.net/archives/2007/11299.html 金相显微镜]
+
*[[Merb]]:Rails 3 整合了 Merb 框架的很多功能
[http://www.shanke.cn/a/18552/archives/2007/17255.shtml 金相显微镜]
+
*更多项目>>> [[Huihoo Ruby Applications]]
[http://baidu12.my.boysky.com/archives/2007/121895.shtml 金相显微镜]
+
 
[http://blog.lmtw.com/b/2524/archives/2007/46355.html 金相显微镜]
+
==Eclipse==
[http://www.doumenzi.com/u/baidu12/archives/2007/699.html 金相显微镜]
+
*使用 [[Aptana]] 进行 Rails 应用开发。
[http://www.sogosz.com/blog/u/baidu12/archives/2007/225.html 金相显微镜]
+
*[http://www.eclipse.org/dltk/ Dynamic Languages Toolkit]
[http://bloger.com.cn/user8/baidu12/archives/2007/366452.shtml 金相显微镜]
+
*[http://www.ibm.com/developerworks/cn/opensource/os-ecl-radrails/ 使用 RadRails 和 Eclipse 可以轻松进行 Ruby on Rails 开发]
[http://blog.chinatennis.org.cn/u/baidu12/archives/2007/1177.html 金相显微镜]
+
*[http://www.ibm.com/developerworks/cn/opensource/os-rubyeclipse/ 使用 Eclipse 插件 Ruby Development Tools]
[http://www.xa-btesting.com/blog/u/baidu12/archives/2007/224.html 金相显微镜]
+
 
[http://blog.coll.org.cn/u/baidu12/archives/2007/216.html 金相显微镜]
+
==数据库==
[http://home.ani8.com/blog/my/baidu12/archives/2007/1421.html 金相显微镜]
+
*[[MySQL]] - http://www.tmtm.org/en/mysql/ruby
[http://www.zbmc.com/user1/baidu12/archives/2007/17361.shtml 金相显微镜]
+
*[[PostgreSQL]] - http://ruby.scripting.ca/postgres
[http://222.243.203.230/blog/u/baidu12/archives/2007/75.htm 金相显微镜]
+
*[[SQLite]] - http://rubyforge.org/projects/sqlite-ruby
[http://blog.1718vip.com/myzone/baidu12/archives/2007/717.html 金相显微镜]
+
*[[Oracle]] - http://rubyforge.org/projects/ruby-oci8
[http://duoduo.ysub.cn/my/baidu12/archives/2007/661.html 金相显微镜]
+
*[[DB2]] - http://raa.ruby-lang.org/project/ruby-db2
[http://www.koreaxin.com/blog/user1/baidu12/archives/2007/9335.html 金相显微镜]
+
*[https://guides.rubyonrails.org/active_record_postgresql.html Active Record and PostgreSQL]
[http://blog.5jie.com/u/286/archives/2007/674.html 金相显微镜]
+
*[https://guides.rubyonrails.org/active_record_multiple_databases.html Multiple Databases with Active Record]
[http://www.chceo.com/blog/u/baidu12/archives/2007/243.html 金相显微镜]
+
 
[http://www.lxez.com/blog/u/baidu12/archives/2007/321.html 金相显微镜]
+
==链接==
[http://www.successba.com/blog/u/366/archives/2007/359.html 金相显微镜]
+
*[http://site.huihoo.com/ruby.html Ruby & Rails 网址]  
[http://www.zcsd.cn/blog/url/213/archives/2007/291.htm 金相显微镜]
+
*http://www.rubyonrails.org/
[http://www.qinqinbaby.com/blog/u/baidu12/archives/2007/358.html 金相显微镜]
+
*[http://www.opensourcerails.com/ Open Source Rails]
[http://www.powergis.net/blog/u/296/archives/2007/674.html 金相显微镜]
+
*[http://docs.huihoo.com/rails/ Rails 文档]
[http://www.shufa.org/oblog3/user1/2500/archives/2007/5586.html 金相显微镜]
+
*[http://railsmanual.org/ Ruby on Rails Documentation]  
[http://bk.ygxxg.com/1/baidu125c/archives/2007/692.htm金相显微镜]
+
*Ruby On Rails Blog: http://www.rubyonrailsblog.com/
[http://www.zsmhf.com/blog/u/530/archives/2007/523.html 金相显微镜]
+
*[http://wiki.rubyonrails.org/rails/pages/OpenSourceProjects OpenSourceProjects in Ruby on Rails]  
[http://www.sxsz.net.cn/blog/sxsz/baidu12/archives/2007/188.html 金相显微镜]
+
*http://wiki.rubyonrails.org/
[http://blog.arsenal.com.cn/user1/baidu125/archives/2007/1145.html 金相显微镜]
+
*http://www.econsultant.com/web-developer/
[http://www.zhixiaowang.com/blog/u/1071/archives/2007/2204.html 金相显微镜]
+
*http://railscn.crispynews.com/
[http://blog.cntca.com/blog/u/1073/archives/2007/677.html 金相显微镜]
+
*http://rorcast.blogger2blogger.com/
[http://www.cgmgc.com/blog/u/412/archives/2007/771.html 金相显微镜]
+
*[http://thoughtbot.com/community/ Clearance]: 这是一个预打包的 Rails 解决方案, 有助于用户身份验证.
[http://www.i4u.com.cn/blog/u/baidu125c/archives/2007/481.html 金相显微镜]
+
[[Image:rorcast.jpg]] - http://blogs.huihoo.com/?p=254
[http://www.nxflowers.com/blog/u/489/archives/2007/185.html 金相显微镜]
+
 
[http://www.34law.com/blog/u/baidu125c/archives/2007/561.htm金相显微镜]
+
==文档==
[http://www.wceinfo.com/blog/u/baidu125c/archives/2007/323.html 金相显微镜]
+
*Ruby 1.4.6 - http://www.huihoo.com/ruby/ruby-man-1.4/
[http://www.xlian.cn/blog/u/764/archives/2007/289.html 金相显微镜]
+
*Ruby User's Guide - http://www.huihoo.com/ruby/rug/
[http://www.dosky.cn/blog/u/386/archives/2007/387.html 金相显微镜]
+
*Rails Framework Documentation - http://www.huihoo.com/ruby/rails/api
[http://blog.cnhubei.com/user2/baidu125c/archives/2007/17661.html 金相显微镜]
+
*http://wiki.rubyonrails.org/rails/pages/OfflineDocumentation
[http://baidu125c.hblog.net/archives/2007/5959.shtml 金相显微镜]
+
 
[http://www.ictee.net/blog/u/baidu125c/archives/2007/550.html 金相显微镜]
+
==书籍==
[http://www.chinaciia.com/Blog/user1/baidu125c/archives/2007/1249.html 金相显微镜]
+
[[Image:agile-web-rails.gif]] http://www.china-pub.com/computers/common/info.asp?id=30058
[http://blog.yzwb.net/user1/baidu125c/archives/2007/8767.html 金相显微镜]
+
 
[http://www.hksycxx.com/MYblog/user1/baidu125c/archives/2007/1317.html 金相显微镜]
+
第一版代码:
[http://www.zyka.cn/blog/u/baidu125c/archives/2007/215.html 金相显微镜]
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails-code.tgz
[http://www.9com.cn/blog/u/1461/archives/2007/1622.html 金相显微镜]
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails-code.zip
[http://www.fdwx.net/blog/u/baidu125c/archives/2007/190.html 金相显微镜]
+
 
[http://www.bjp98.com/Blog/u/baidu125c/archives/2007/175.html 金相显微镜]
+
第二版代码:
[http://www.gz-travel.net/blog/u/465/archives/2007/458.html 金相显微镜]
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails2-code.tgz
[http://www.longxss.com/blog/u/baidu125c/archives/2007/1366.html 金相显微镜]
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails2-code.zip
[http://www.easykan.com/blog/user1/baidu125c/archives/2007/986.html 金相显微镜]
+
 
[http://xy.jxgdw.com/blog/user1/baidu125c/archives/2007/1582.html 金相显微镜]
+
第三版代码:
[http://www.51garlic.com/blog/u/baidu125c/archives/2007/897.html 金相显微镜]
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails3-code.tgz
[http://www.zhukuai.com/blog/u/baidu125c/archives/2007/620.html 金相显微镜]
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails3-code.zip
[http://www.sheke.cn/blog/u/467/archives/2007/475.html 金相显微镜]
+
 
 +
第四版代码:
 +
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails4-code.tgz
 +
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails4-code.zip
 +
 
 +
==Top ROR Demos Exampls Code==
 +
{{SeeWikipedia|Ruby on Rails}}
 +
 
 +
*http://www.ajaxscaffold.com Ajax Scaffold : Generates a production ready, fully styled, interface for managing models
 +
*http://unspace.ca/discover/datagrid AJAX Live Data Grid Example : Data sub-forms at Unspace.ca
 +
*http://calendar-grid.rubyforge.org/ CalendarGrid : build output like a calendar at RubyForge.org
 +
*http://wiki.rubyonrails.com/rails/pages/CalendarHelper CalendarHelper : methods are intended to make the use of the DHTML/JavaScript calendar as easy as possible ; at RubyOnRails
 +
*http://collaboa.org/ Collaboa : a collaborative tool for developers using Subversion
 +
*http://www.jvoorhis.com/pages/calendar-helper DynamicCalendarHelper : calendar with CSS ; by Jeremy Voorhis
 +
*http://www.eribium.org/eribium/ Eribium : a Rails CMS
 +
*http://www.hieraki.org/trac/ Hieraki2 : wiki engine / CMS
 +
*http://wiki.rubyonrails.com/rails/pages/HowToUseDragAndDropSorting HowToUseDragAndDropSorting : How to use drag and drop Sorting ; at RubyOnRails
 +
*http://instantrails.rubyforge.org/wiki/wiki.pl Instant Rails : Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails, Apache, and MySQL, all pre-configured and ready to run.
 +
*http://www.joshuamcharles.com/rails/fckeditor.html Integrate FCKEditor with your Ruby on Rails application : rich text editor integration ; by Joshua M Charles
 +
*[http://www.oreillynet.com/onjava/blog/2006/02/integrating_a_richtext_widget.html?CMP=OTC-FP2116136014&ATT=Integrating+a+Rich-text+Widget+with+Struts Integrating a Rich-text Widget with Struts] : rich-text replacement for the textarea ; at OReillyNet
 +
*http://instiki.org/show/HomePage Instiki : wiki clone ; at Instiki.org
 +
*http://wiki.rubyonrails.com/rails/pages/LiveTree LiveTree : JavaScript/DHTML tree widget that loads data asynchronously ; at RubyOnRails
 +
*http://locomotive.sourceforge.net/ Locomotive : simple tool to help you develop Ruby on Rails applications on Mac OS X
 +
*http://wiki.rubyonrails.com/rails/pages/LoginGenerator LoginGenerator : add authentication, users, and logins to your rails app ; at RubyOnRails
 +
*http://wiki.rubyonrails.com/rails/pages/movtable Movtable : sort table
 +
*http://www.subimage.com/sublog/openSourceRubyOnRailsShoppingCart Open Source Ruby On Rails Shopping Cart : e-commerce platform at SubImage
 +
*http://wiki.rubyonrails.com/rails/pages/PaginationHelper PaginationHelper : aids the process of paging large collections of Active Record objects ; at RubyOnRails
 +
*http://jordan.husney.com/archives/2005/12/progress_bars_w_1.php Progress Bars with GD2 and Ruby : progress bars ; at Husney
 +
*http://www.bigbold.com/snippets/tag/rmagick rmagick : file/image uploading ; at BigBold
 +
*http://rubyinstaller.rubyforge.org/wiki/wiki.pl RubyInstaller : This is a “one-click”, self-contained Windows installer that contains the Ruby language itself, dozens of popular extensions and packages, a syntax-highlighting editor and execution environment ; at RubyForge
 +
*http://simpleticketblog.weblogswork.com/?p=46 Simple Ticket : trouble ticket system written using Ruby
 +
*http://wiki.rubyonrails.com/rails/pages/LiveTree SortHelper : SortHelper will create links for your users to sort tables.
 +
*http://wiki.rubyonrails.com/rails/pages/Sort+Helper SortHelper3 : Helper to sort tables or result sets using clickable column headers.
 +
*http://dev.subimage.com/projects/substruct Substruct : The first and only Ruby on Rails open source e-commerce project.
 +
*http://wiki.rubyonrails.com/rails/pages/TinyFile TinyFile : basic file uploads in a rails app
 +
*http://www.typosphere.org/ Typo : Ruby blogging software.
 +
*http://www.liverail.net/articles/2006/06/25/webdav-ruby-on-rails-plugin WebDAV Ruby On Rails Plugin : create Ruby On Rails controllers which will respond to WebDAV requests
 +
 
 +
==Top ROR Hosts==
 +
*[http://www.3shost.com/ 3SHost]
 +
*[http://www.a2hosting.com/ A2 Hosting]
 +
*[http://www.ambitiouslemon.com AmbitiousLemon]
 +
*[http://www.anchor.com.au Anchor Systems]
 +
*[http://www.asmallorange.com/services/hosting/ A Small Orange]
 +
*[http://www.blacksun.ca/ BlackSun.ca]
 +
*[http://www.bluehost.com/ BlueHost]
 +
*[http://www.bright-byte.com/ Bright-Byte.com]
 +
*[http://www.bytemark.co.uk/ Bytemark Hosting]
 +
*[http://www.canadianwebhosting.com CanadianWebHosting.com]
 +
*[http://www.csoft.net Csoft.org]
 +
*[http://www.cybersalad.net Cybersalad]
 +
*[http://www.dewahost.com DewaHost]
 +
*[http://www.downtownhost.com DowntownHost]
 +
*[http://www.dreamhost.com DreamHost]
 +
*[http://www.eastsolid.com EastSolid.com]
 +
*[http://www.freeonrails.com FreeOnRails]
 +
*[http://www.gazzin.com Gazzin.com]
 +
*[http://www.gearworx.net Gearworx]
 +
*[http://www.geekisp.com GeekISP]
 +
*[http://www.grokthis.net GrokThis.net]
 +
*[http://www.happygecko.com Happy Gecko]
 +
*[http://www.hardfocus.com/network Hardfocus Media, Web Hosting]
 +
*[http://www.honeycomb.net Honeycomb]
 +
*[http://www.hostbrigade.com HOST BRIGADE]
 +
*[http://www.hostcentral.net.au Hostcentral]
 +
*[http://www.hostexpress.com.au HostExpress]
 +
*[http://www.hostingmetro.com HostingMetro.com]
 +
*[http://www.hostingrails.com Hosting Rails]
 +
*[http://www.hostm.com HostM.com Web Hosting]
 +
*[http://www.hostmg.com HostMG.com]
 +
*[http://www.hostmysite.com/rails HostMySite]
 +
*[http://www.hostpc.com HostPC Internet Services]
 +
*[http://www.hub.org Hub.org]
 +
*[http://www.inethoster.net/forum/index.php iNetHoster]
 +
*[http://www.jaguarpc.com JaguarPC]
 +
*[http://www.jumba.com.au Jumba]
 +
*[http://www.kattare.com Kattare Internet Services]
 +
*[http://www.locaweb.com.br Locaweb]
 +
*[http://www.lunarpages.com Lunarpages]
 +
*[http://www.max-king.com max-king Hosting]
 +
*[http://www.monkeywrenchhosting.com MonkeyWrench Hosting]
 +
*[http://www.monsterhosting.ca MonsterHosting.ca]
 +
*[http://www.ncisolutions.com NeonCube Internet Solutions]
 +
*[http://www.net.ru Net.Ru]
 +
*[http://www.netfirms.com Netfirms]
 +
*[http://www.networkredux.com NetworkRedux]
 +
*[http://www.nodeta.fi Nodeta]
 +
*[http://www.ocssolutions.com/virtual-hosting.php OCS Solutions]
 +
*[http://www.openhosting.com OpenHosting]
 +
*[http://www.phpwebhosting.com PHPWebHosting]
 +
*[http://www.pil.dk pil.dk]
 +
*[http://www.pipespring.com Pipespring]
 +
*[http://www.planet-work.fr Planet-Work]
 +
*[http://www.planetargon.com/rails_hosting.html PLANET ARGON]
 +
*[http://www.plutomic.com Plutomic Hosting]
 +
*[http://www.primehosting.co.uk Prime Hosting]
 +
*[http://www.prioserve.nl Prioserve.nl]
 +
*[http://www.python-hosting.com Python-Hosting.com]
 +
*[http://www.railsbase.com RailsBase]
 +
*[http://www.railshost.cn RailsHost.cn]
 +
*[http://www.railshosting.org RailsHosting.org]
 +
*[http://www.railsplayground.com RailsPlayground.com]
 +
*[http://www.razorlogix.net RazorLogix.net]
 +
*[http://www.revolutionhosting.net Revolution Hosting]
 +
*[http://www.rubyonrailshosting.net RubyOnRailsHosting.net]
 +
*[http://www.rushedsunlight.com Rushedsunlight.com]
 +
*[http://www.servernation.nl Server Nation]
 +
*[http://www.serverpowered.com Server Powered]
 +
*[http://www.seven.net.nz Seven Internet]
 +
*[http://www.simplehost.co.nz Simplehost]
 +
*[http://www.site5.com/affiliates/idevaffiliate.php?id=677 Site5]
 +
*[http://www.skull.co.nz Skull]
 +
*[http://www.slingshothosting.com Slingshot]
 +
*[http://www.smarthost.ro Smarthost Romania]
 +
*[http://www.soyhost.com soyhost]
 +
*[http://www.squidhost.com Squidhost.com]
 +
*[http://www.steelpixel.com Steelpixel.com]
 +
*[http://www.superior.nl Superior Internet Services]
 +
*[http://www.terrabox.com TerraBox.com]
 +
*[http://www.textdrive.com TextDrive]
 +
*[http://www.thoughtbot.com thoughtbot, inc.]
 +
*[http://www.typhon.net Typhon.net]
 +
*[http://www.uplink.at uplink coherent solutions&trade]
 +
*[http://www.vpsland.com VPSLAND.com: Advanced Xen VPS Hosting]
 +
*[http://www.WebExpertsAmerica.com Web Experts America]
 +
*[http://www.webflow.de webflow]
 +
*[http://www.webhostlist.de German Ruby Hoster List]
 +
*[http://www.webonce.com WebOnce Technologies]
 +
*[http://www.webslum.net Webslum Internet Services]
 +
*[http://www.webspace.net.au WebSpace.net.au]
 +
*[http://www.westhost.com/ruby-on-rails-hosting.html WestHost]
 +
*[http://www.wizhosting.com WizHosting.com]
 +
*[http://www.xelhosting.com Xelhosting.com: Xen VPS hosting]
 +
*[http://www.xentra.nl Xentra]
 +
*[http://www.xmghosting.com XMG Hosting]
 +
*[http://www.xtrahost.net/xenvps Xtraordinary VPS]
 +
*[http://www.zettai.net Zettai]
 +
*[http://xeriom.net Xeriom Networks]
 +
*[https://www.auriance.net/packs.php Auriance]
 +
*[https://www.godaddy.com/gdshop/hosting/shared.asp GoDaddy]
 +
*[http://apisnetworks.com Apis Networks]
 +
*[http://avlux.net AVLUX]
 +
*[http://axishost.com AxisHOST.com]
 +
*[http://blackcurranthost.co.uk Blackcurrant Hosting]
 +
*[http://etecc.net eTecc.net]
 +
*[http://fuse9.net Fuse9]
 +
*[http://gsfactory.net GsFactory.Net]
 +
*[http://gvt.hk GVT.hk]
 +
*[http://highspeedrails.com High Speed Rails]
 +
*[http://hospes.pl Hospes.pl]
 +
*[http://hosting.chml.ro CHML Hosting]
 +
*[http://hosting.media72.co.uk Media72 Hosting]
 +
*[http://mysticserver.com MysticServer]
 +
*[http://nobudget-hoster.validcode.at nobudget hoster]
 +
*[http://peconihosting.com/ PeconiHosting.com]
 +
*[http://plinkd.com Plinkd Hosting]
 +
*[http://proinet.se ProInet.se]
 +
*[http://railswebhost.com RailsWebHost.com]
 +
*[http://rimuhosting.com RimuHosting Ruby on Rails Hosting]
 +
*[http://rootr.net RootR]
 +
*[http://seattleserver.com SeattleServer.com]
 +
*[http://segpub.com.au SegPub]
 +
*[http://successfulhosting.com/hosting/unix.php SuccessfulHosting.com]
 +
*[http://theinternetco.net/offers/ruby The Internet Company]
 +
*[http://thinkhost.com ThinkHost]
 +
*[http://unbit.it UnBit.it]
 +
*[http://wish.hu Wish Internet]
 +
 
 +
==图集==
 +
<gallery widths=100px heights=100px perrow=6>
 +
Image:Rails-stack.jpg|Rails和J2EE堆栈的比较
 +
Image:Rails_mindmap.png|Rails Mindmap
 +
Image:Thumb-rails_mindmap.png|Rails Mindmap
 +
Image:ror-mindmap.jpg|追美人项目
 +
Image:ruby-on-rails.jpg|RoR Wallpaper
 +
Image:R4R-rm.jpg|再设计model
 +
Image:ror-01.jpg|RoR风景线
 +
Image:ror-06.jpg|RoR模组
 +
Image:ror-08.jpg|RoR控制流
 +
Image:ror-09.jpg|RoR内置精华
 +
Image:ror-11.jpg|RoR容器
 +
Image:ror-15.jpg|编程式增强model 
 +
Image:ror-render.jpg|RoR Render
 +
Image:ror-16.jpg|增强的控制器和视图
 +
Image:ror-04.jpg|RoR程序块之对象和变量
 +
Image:ror-02.jpg|RoR如何工作
 +
Image:Rails-package-overview.png|RoR Package
 +
Image:Ruby_on_rails_cheat_sheet.png|RoR cheat sheet
 +
</gallery>
 +
 
 +
[[category:programming language]]
 +
[[category:ruby]]
 +
[[category:rails]]
 +
[[category:Huihoo Foundation]]

2023年6月11日 (日) 02:02的最后版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Rails Thanks, Wikipedia.
Rails-90x90.png

Ruby on Rails

目录

[编辑] 简介

Ruby on Rails.jpeg 是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上。它被宣传为现有企业框架的一个替代,而它的目标,简而言之,就是让生活,至少是 Web 开发方面的生活,变得更轻松。

Rails可在以下Web Server部署

[编辑] 功能

[编辑] 开发指南

[编辑] 深入Rails

Rails

Rails组件:

  • Action Controller
  • Action View
  • Active Record
  • Action Mailer
  • Active Resource
  • Railties
  • Active Support

[编辑] 安装

RubyGems is a package manager for Ruby.

gem install rails
or gem install -v=5.2 rails
rails new myapp
cd myapp; rails server
http://localhost:3000

注:不用apt-get install rails 因版本较旧

旧版:安装 Ruby:

Linux/UNIX

http://download.huihoo.com/ruby/ruby-1.8.6.tar.gz
tar xzvf ruby-1.8.6.tar.gz
cd ruby-1.8.6
./configure –prefix=/usr/local/ruby
make && make install
修改 .bashrc
export PATH=/usr/local/ruby/bin:$PATH
http://download.huihoo.com/ruby/rubygems-0.8.11.zip
unzip rubygems-0.8.11.zip
cd rubygems-0.8.11
ruby setup.rb
gem install rake

Windows

http://download.huihoo.com/ruby/ruby186-26_rc2.exe

[编辑] Rails 6

Rails 6.1

[编辑] Rails 5

[编辑] Rails 4

[编辑] Rails 3

[编辑] Rails 2

按顺序安装

http://download.huihoo.com/rails/rails-2.1.0.zip
gem install activesupport-2.1.0.gem
gem install activerecord-2.1.0.gem
gem install actionpack-2.1.0.gem
gem install actionmailer-2.1.0.gem
gem install activeresource-2.1.0.gem
gem install rake-0.8.1.gem
gem install rails-2.1.0.gem   
rails -v 显示Rails 2.1.0 :)

或者

gem install -v=2.1.0 rails

[编辑] Rails 1

安装 Rails:

http://download.huihoo.com/rails/rails-1.2.3.zip

按顺序安装

gem install activesupport-1.4.2.gem
gem install activerecord-1.15.3.gem
gem install actionpack-1.13.3.gem
gem install actionmailer-1.3.3.gem
gem install actionwebservice-1.2.3.gem
gem install rails-1.2.3.gem   
rails -v 显示Rails 1.2.3 :)

可能出现的问题: undefined method `gem' for main:Object, 可能是gem的版本太低,升级一下 gem

# gem update --system

Fast CGI and Apache2 for Windows XP

卸载 Rails 1.2.3

gem uninstall Rails
gem uninstall Rake
gem uninstall Actionwebservice
gem uninstall Actionmailer
gem uninstall Actionpack
gem uninstall Activesupport
gem uninstall Activerecord

[编辑] Simple Weblog

Sample Weblog

强力推荐这个例子 :)

  • Use Rake tasks and migration files to create and update database tables
  • Use the scaffold generator to generate a basic create, read, update, delete (CRUD) database web application
  • Edit views to fine tune the web pages
  • how to build relationships (one-to-one and one-to-many) between models

逐步创建的表结构:

001_create_posts.rb
002_add_body_to_post.rb // 加入新的字段
003_create_comments.rb // 创建新的表

[编辑] 用户

[编辑] 项目

Mastodon
Shopify

[编辑] Eclipse

[编辑] 数据库

[编辑] 链接

Rorcast.jpg - http://blogs.huihoo.com/?p=254

[编辑] 文档

[编辑] 书籍

Agile-web-rails.gif http://www.china-pub.com/computers/common/info.asp?id=30058

第一版代码:

第二版代码:

第三版代码:

第四版代码:

[编辑] Top ROR Demos Exampls Code

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Rails Thanks, Wikipedia.

[编辑] Top ROR Hosts

[编辑] 图集

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱