Rails

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(安装)
 
(未显示5个用户的137个中间版本)
第1行: 第1行:
[[Image:Rails.png|right]]
+
{{SeeWikipedia|Ruby on Rails}}
Ruby on [[Image:Rails.jpeg]] 是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上。它被宣传为现有企业框架的一个替代,而它的目标,简而言之,就是让生活,至少是 Web 开发方面的生活,变得更轻松。
+
  
*http://www.rubyonrails.org/
+
[[Image:Rails-90x90.png|right]]
*OpenSourceProjects in Ruby on Rails - http://wiki.rubyonrails.org/rails/pages/OpenSourceProjects
+
 
*http://www.econsultant.com/web-developer/
+
Ruby on Rails
 +
 
 +
==简介==
 +
[[Ruby]] on [[Image:Rails.jpeg]] 是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上。它被宣传为现有企业框架的一个替代,而它的目标,简而言之,就是让生活,至少是 Web 开发方面的生活,变得更轻松。
 +
 
 +
[[Image:rails-web-server.jpg|right|Rails可在以下Web Server部署]]
  
[[Image:rails-web-server.jpg]] Rails应用可以在以下Web Server部署
+
==功能==
  
==安装指南==
+
==开发指南==
 
*[[Ruby on Rails on Debian]]
 
*[[Ruby on Rails on Debian]]
 
*[[Install Ruby Rails Lighttpd MySQL on Ubuntu or FreeBSD]]
 
*[[Install Ruby Rails Lighttpd MySQL on Ubuntu or FreeBSD]]
 +
*[[Emacs support for Ruby and Rails]]
 +
*[[Huihoo Ruby Applications]]
 +
*[[RadRails]] - A Ruby on Rails IDE
 +
*[http://yehudakatz.com/ Yehuda Katz] 的博客: Katz 是 Rails 的核心贡献者, 同时也是 [[Merb]] 和 Rails 整合的首席架构师.
  
==成功应用==
+
==深入Rails==
*http://www.8sheng.com/
+
[[文件:rails-logo.png|right|Rails]]
*http://www.soopie.com
+
*[http://opinion.rubytao.com/ruby/rails-source-code-reading Rails框架代码解读]
*http://www.iease.com.cn/
+
Rails组件:
 +
*Action Controller
 +
*Action View
 +
*Active Record
 +
*Action Mailer
 +
*Active Resource
 +
*Railties
 +
*Active Support
  
==开源项目==
+
==安装==
*[[Radiant CMS]] - Content Management Simplified
+
[[RubyGems]] is a package manager for Ruby.
*[[LoginGenerator]]
+
gem install rails
*[[Typo]] – Weblogging Engine
+
or gem install -v=5.2 rails
*[[Hieraki2]] – Wiki Meets Online Doc System
+
rails new myapp
 +
cd myapp; rails server
 +
http://localhost:3000
 +
注:不用apt-get install rails 因版本较旧
  
==书籍==
+
旧版:安装 Ruby:  
[[Image:agile-web-rails.gif]] http://www.china-pub.com/computers/common/info.asp?id=30058
+
  
第一版代码:
+
Linux/UNIX
*http://media.pragprog.com/titles/rails/code/rails-code.tgz
+
http://download.huihoo.com/ruby/ruby-1.8.6.tar.gz
*http://media.pragprog.com/titles/rails/code/rails-code.zip
+
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==
*http://media.pragprog.com/titles/rails2/code/rails-code.tgz
+
[https://weblog.rubyonrails.org/2020/12/9/Rails-6-1-0-release/ Rails 6.1]
*http://media.pragprog.com/titles/rails2/code/rails-code.zip
+
  
==Top 29 ROR Demos Exampls Code==
+
==Rails 5==
<ol>
+
<li>http://www.ajaxscaffold.com Ajax Scaffold : Generates a production ready, fully styled, interface for managing models
+
<li>http://unspace.ca/discover/datagrid AJAX Live Data Grid Example : Data sub-forms at Unspace.ca
+
<li>http://calendar-grid.rubyforge.org/ CalendarGrid : build output like a calendar at RubyForge.org
+
<li>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
+
<li>http://collaboa.org/ Collaboa : a collaborative tool for developers using Subversion
+
<li>http://www.jvoorhis.com/pages/calendar-helper DynamicCalendarHelper : calendar with CSS ; by Jeremy Voorhis
+
<li>http://www.eribium.org/eribium/ Eribium : a Rails CMS
+
<li>http://www.hieraki.org/trac/ Hieraki2 : wiki engine / CMS
+
<li>http://wiki.rubyonrails.com/rails/pages/HowToUseDragAndDropSorting HowToUseDragAndDropSorting : How to use drag and drop Sorting ; at RubyOnRails
+
<li>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.
+
<li>http://www.joshuamcharles.com/rails/fckeditor.html Integrate FCKEditor with your Ruby on Rails application : rich text editor integration ; by Joshua M Charles
+
<li>[http://www.oreillynet.com/onjava/blog/2006/02/integrating_a_richtext_widget.html?CMP=OTC-FP2116136014&#038;ATT=Integrating+a+Rich-text+Widget+with+Struts Integrating a Rich-text Widget with Struts] : rich-text replacement for the textarea ; at OReillyNet
+
<li>http://instiki.org/show/HomePage Instiki : wiki clone ; at Instiki.org
+
  
<li>http://wiki.rubyonrails.com/rails/pages/LiveTree LiveTree : JavaScript/DHTML tree widget that loads data asynchronously ; at RubyOnRails
+
==Rails 4==
<li>http://locomotive.sourceforge.net/ Locomotive : simple tool to help you develop Ruby on Rails applications on Mac OS X
+
<li>http://wiki.rubyonrails.com/rails/pages/LoginGenerator LoginGenerator : add authentication, users, and logins to your rails app ; at RubyOnRails
+
<li>http://wiki.rubyonrails.com/rails/pages/movtable Movtable : sort table
+
<li><a href="http://www.subimage.com/sublog/openSourceRubyOnRailsShoppingCart">Open Source Ruby On Rails Shopping Cart</a> : e-commerce platform at SubImage
+
<li><a href="http://wiki.rubyonrails.com/rails/pages/PaginationHelper">PaginationHelper</a> : aids the process of paging large collections of Active Record objects ; at RubyOnRails
+
  
<li><a href="http://jordan.husney.com/archives/2005/12/progress_bars_w_1.php">Progress Bars with GD2 and Ruby</a> : progress bars ; at Husney
+
==Rails 3==
<li><a href="http://www.bigbold.com/snippets/tag/rmagick">rmagick</a> : file/image uploading ; at BigBold
+
<li><a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl">RubyInstaller</a> : This is a &#8220;one-click&#8221;, 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
+
<li><a href="http://simpleticketblog.weblogswork.com/?p=46">Simple Ticket </a> : trouble ticket system written using Ruby
+
<li><a href="http://wiki.rubyonrails.com/rails/pages/LiveTree">SortHelper 1</a> : SortHelper will create links for your users to sort tables.
+
  
<li><a href="http://wiki.rubyonrails.com/rails/pages/Sort+Helper">SortHelper3</a> : Helper to sort tables or result sets using clickable column headers.
+
==Rails 2==
<li><a href="http://dev.subimage.com/projects/substruct">Substruct</a> : The first and only Ruby on Rails open source e-commerce project.
+
按顺序安装
<li><a href="http://wiki.rubyonrails.com/rails/pages/TinyFile">TinyFile</a> : basic file uploads in a rails app
+
http://download.huihoo.com/rails/rails-2.1.0.zip
<li><a href="http://www.typosphere.org/">Typo</a> : Ruby blogging software.
+
gem install activesupport-2.1.0.gem
<li><a href="http://www.liverail.net/articles/2006/06/25/webdav-ruby-on-rails-plugin">WebDAV Ruby On Rails Plugin</a> : create Ruby On Rails controllers which will respond to WebDAV requests
+
gem install activerecord-2.1.0.gem
</ol
+
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
  
==Top 238 ROR Hosts==
+
==Rails 1==
<ol>
+
安装 Rails:
<li><a href="http://www.3shost.com/">3SHost</a>
+
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 :)
  
<li><a href="http://www.a2hosting.com/">A2 Hosting</a>
+
可能出现的问题: undefined method `gem' for main:Object, 可能是gem的版本太低,升级一下 gem
<li><a href="http://www.ambitiouslemon.com">AmbitiousLemon</a>
+
# gem update --system
<li><a href="http://www.anchor.com.au">Anchor Systems</a>
+
<li><a href="http://www.asmallorange.com/services/hosting/">A Small Orange</a>
+
<li><a href="http://www.blacksun.ca/">BlackSun.ca</a>
+
<li><a href="http://www.bluehost.com/">BlueHost</a>
+
<li><a href="http://www.bright-byte.com/">Bright-Byte.com</a>
+
<li><a href="http://www.bytemark.co.uk/">Bytemark Hosting</a>
+
<li><a href="http://www.canadianwebhosting.com">CanadianWebHosting.com</a>
+
  
<li><a href="http://www.csoft.net">Csoft.org</a>
+
[http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP Fast CGI and Apache2 for Windows XP]
<li><a href="http://www.cybersalad.net">Cybersalad</a>
+
<li><a href="http://www.dewahost.com">DewaHost</a>
+
<li><a href="http://www.downtownhost.com/">DowntownHost</a>
+
<li><a href="http://www.dreamhost.com/">DreamHost</a>
+
<li><a href="http://www.eastsolid.com">EastSolid.com</a>
+
<li><a href="http://www.freeonrails.com">FreeOnRails</a>
+
<li><a href="http://www.gazzin.com">Gazzin.com</a>
+
<li><a href="http://www.gearworx.net/">Gearworx</a>
+
  
<li><a href="http://www.geekisp.com/">GeekISP</a>
+
卸载 Rails 1.2.3
<li><a href="http://www.grokthis.net/">GrokThis.net</a>
+
gem uninstall Rails
<li><a href="http://www.happygecko.com">Happy Gecko &#8211; English speaking ISP in Spain</a>
+
gem uninstall Rake
<li><a href="http://www.hardfocus.com/network">Hardfocus Media &#8211; Web Hosting</a>
+
gem uninstall Actionwebservice
<li><a href="http://www.honeycomb.net/">Honeycomb</a>
+
gem uninstall Actionmailer
<li><a href="http://www.hostbrigade.com/">HOST BRIGADE</a>
+
gem uninstall Actionpack
<li><a href="http://www.hostcentral.net.au">Hostcentral</a>
+
gem uninstall Activesupport
 +
gem uninstall Activerecord
  
<li><a href="http://www.hostexpress.com.au">HostExpress</a>
+
==Simple Weblog==
<li><a href="http://www.hostingmetro.com">HostingMetro.com</a>
+
[[Image:rubyweblog.png|thumb|right|Sample Weblog]]
<li><a href="http://www.hostingrails.com">Hosting Rails</a>
+
强力推荐这个例子 :)
<li><a href="http://www.hostm.com">HostM.com Web Hosting</a>
+
* Use Rake tasks and migration files to create and update database tables
<li><a href="http://www.hostmg.com">HostMG.com</a>
+
* Use the scaffold generator to generate a basic create, read, update, delete (CRUD) database web application
<li><a href="http://www.hostmysite.com/rails/">HostMySite</a>
+
* Edit views to fine tune the web pages
<li><a href="http://www.hostpc.com">HostPC Internet Services</a>
+
* how to build relationships (one-to-one and one-to-many) between models
<li><a href="http://www.hub.org">Hub.org</a>
+
逐步创建的表结构:  
<li><a href="http://www.inethoster.net/forum/index.php">iNetHoster</a>
+
001_create_posts.rb
 +
002_add_body_to_post.rb // 加入新的字段
 +
003_create_comments.rb // 创建新的表
 +
*Creating a Ruby Weblog in 10 Minutes http://www.netbeans.org/kb/61/ruby/rapid-ruby-weblog.html
 +
*Building Relationships Between Rails Models http://www.netbeans.org/kb/60/ruby/model.html
 +
*Adding Ajax Support: http://www.netbeans.org/kb/60/ruby/ajax.html
  
<li><a href="http://www.jaguarpc.com/">JaguarPC</a>
+
==用户==
<li><a href="http://www.jumba.com.au">Jumba</a>
+
*[http://twitter.com/ Twitter]
<li><a href="http://www.kattare.com/">Kattare Internet Services</a>
+
*[http://github.com/ GitHub]
<li><a href="http://www.locaweb.com.br">Locaweb</a>
+
*[https://github.com/Shopify Shopify]
<li><a href="http://www.lunarpages.com/">Lunarpages</a>
+
*[http://www.basecamphq.com/ Basecamphq]
<li><a href="http://www.max-king.com/">max-king Hosting</a>
+
*http://www.43people.com/
<li><a href="http://www.monkeywrenchhosting.com">MonkeyWrench Hosting</a>
+
*http://www.43things.com/
<li><a href="http://www.monsterhosting.ca">MonsterHosting.ca</a>
+
*http://www.43space.com/
<li><a href="http://www.ncisolutions.com/">NeonCube Internet Solutions</a>
+
*http://www.8sheng.com/
 +
*http://www.soopie.com
 +
*http://www.iease.com.cn/
 +
*http://www.flagr.com
 +
*http://www.odeo.com/
 +
*http://www.myd2d.com/
  
<li><a href="http://www.net.ru">Net.Ru</a>
+
==项目==
<li><a href="http://www.netfirms.com/">Netfirms</a>
+
[[文件:Mastodon-logo.png|right|Mastodon]]
<li><a href="http://www.networkredux.com/">NetworkRedux</a>
+
[[文件:Shopify-logo.png|right|Shopify]]
<li><a href="http://www.nodeta.fi/">Nodeta</a>
+
*[https://github.com/ekremkaraca/awesome-rails Awesome Rails] [[image:awesome.png]]
<li><a href="http://www.ocssolutions.com/virtual-hosting.php">OCS Solutions</a>
+
*[https://github.com/hothero/awesome-rails-gem Awesome Rails Gem] [[image:awesome.png]]
<li><a href="http://www.openhosting.com/">OpenHosting</a>
+
*[https://github.com/orgs/Shopify/repositories?language=ruby Shopify @ GitHub] 可能是世界上最大的 [[Ruby]] & Rails 团队
<li><a href="http://www.phpwebhosting.com/">PHPWebHosting</a>
+
*[https://github.com/thoughtbot/suspenders Suspenders]
<li><a href="http://www.pil.dk/">pil.dk</a>
+
*[https://github.com/RailsApps/rails-composer Rails Composer]
<li><a href="http://www.pipespring.com/">Pipespring</a>
+
*[[Mastodon]]
 +
*[[Redmine]]
 +
*[[OpenProject]]
 +
*[[Spree commerce]]
 +
*[[diaspora]]
 +
*[[Puma]]
 +
*[[Travis CI]]
 +
*[[Radiant CMS]] - Content Management Simplified
 +
*[[LoginGenerator]]
 +
*[[Typo]] – Weblogging Engine
 +
*[[Hieraki2]] – Wiki Meets Online Doc System
 +
*[[Mongrel]]
 +
*[[RForum]]
 +
*[[ActiveScaffold]]
 +
*[[Merb]]:Rails 3 整合了 Merb 框架的很多功能
 +
*更多项目>>> [[Huihoo Ruby Applications]]
  
<li><a href="http://www.planet-work.fr/">Planet-Work</a>
+
==Eclipse==
<li><a href="http://www.planetargon.com/rails_hosting.html">PLANET ARGON</a>
+
*使用 [[Aptana]] 进行 Rails 应用开发。
<li><a href="http://www.plutomic.com">Plutomic Hosting</a>
+
*[http://www.eclipse.org/dltk/ Dynamic Languages Toolkit]
<li><a href="http://www.primehosting.co.uk/">Prime Hosting</a>
+
*[http://www.ibm.com/developerworks/cn/opensource/os-ecl-radrails/ 使用 RadRails 和 Eclipse 可以轻松进行 Ruby on Rails 开发]
<li><a href="http://www.prioserve.nl">Prioserve.nl</a>
+
*[http://www.ibm.com/developerworks/cn/opensource/os-rubyeclipse/ 使用 Eclipse 插件 Ruby Development Tools]
<li><a href="http://www.python-hosting.com">Python-Hosting.com</a>
+
<li><a href="http://www.railsbase.com/">RailsBase</a>
+
<li><a href="http://www.railshost.cn">RailsHost.cn</a>
+
<li><a href="http://www.railshosting.org">RailsHosting.org</a>
+
  
<li><a href="http://www.railsplayground.com">RailsPlayground.com</a>
+
==数据库==
<li><a href="http://www.razorlogix.net">RazorLogix.net</a>
+
*[[MySQL]] - http://www.tmtm.org/en/mysql/ruby
<li><a href="http://www.revolutionhosting.net/">Revolution Hosting</a>
+
*[[PostgreSQL]] - http://ruby.scripting.ca/postgres
<li><a href="http://www.rubyonrailshosting.net">RubyOnRailsHosting.net</a>
+
*[[SQLite]] - http://rubyforge.org/projects/sqlite-ruby
<li><a href="http://www.rushedsunlight.com/">Rushedsunlight.com &#8211; no nonsense, with Rails support</a>
+
*[[Oracle]] - http://rubyforge.org/projects/ruby-oci8
<li><a href="http://www.servernation.nl/">Server Nation</a>
+
*[[DB2]] - http://raa.ruby-lang.org/project/ruby-db2
<li><a href="http://www.serverpowered.com/">Server Powered</a>
+
*[https://guides.rubyonrails.org/active_record_postgresql.html Active Record and PostgreSQL]
<li><a href="http://www.seven.net.nz/">Seven Internet</a>
+
*[https://guides.rubyonrails.org/active_record_multiple_databases.html Multiple Databases with Active Record]
  
<li><a href="http://www.simplehost.co.nz/">Simplehost</a>
+
==链接==
<li><a href="http://www.site5.com/affiliates/idevaffiliate.php?id=677">Site5</a>
+
*[http://site.huihoo.com/ruby.html Ruby & Rails 网址]
<li><a href="http://www.skull.co.nz/">Skull</a>
+
*http://www.rubyonrails.org/
<li><a href="http://www.slingshothosting.com">Slingshot</a>
+
*[http://www.opensourcerails.com/ Open Source Rails]
<li><a href="http://www.smarthost.ro/">Smarthost Romania</a>
+
*[http://docs.huihoo.com/rails/ Rails 文档]
<li><a href="http://www.soyhost.com/">soyhost</a>
+
*[http://railsmanual.org/ Ruby on Rails Documentation]
<li><a href="http://www.squidhost.com/">Squidhost.com &#8211; Ruby on Rails &#38; PHP5!</a>
+
*Ruby On Rails Blog: http://www.rubyonrailsblog.com/
 +
*[http://wiki.rubyonrails.org/rails/pages/OpenSourceProjects OpenSourceProjects in Ruby on Rails]
 +
*http://wiki.rubyonrails.org/
 +
*http://www.econsultant.com/web-developer/
 +
*http://railscn.crispynews.com/
 +
*http://rorcast.blogger2blogger.com/
 +
*[http://thoughtbot.com/community/ Clearance]: 这是一个预打包的 Rails 解决方案, 有助于用户身份验证.
 +
[[Image:rorcast.jpg]] - http://blogs.huihoo.com/?p=254
 +
 
 +
==文档==
 +
*Ruby 1.4.6 - http://www.huihoo.com/ruby/ruby-man-1.4/
 +
*Ruby User's Guide - http://www.huihoo.com/ruby/rug/
 +
*Rails Framework Documentation - http://www.huihoo.com/ruby/rails/api
 +
*http://wiki.rubyonrails.org/rails/pages/OfflineDocumentation
 +
 
 +
==书籍==
 +
[[Image:agile-web-rails.gif]] http://www.china-pub.com/computers/common/info.asp?id=30058
 +
 
 +
第一版代码:
 +
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails-code.tgz
 +
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails-code.zip
 +
 
 +
第二版代码:
 +
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails2-code.tgz
 +
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails2-code.zip
  
<li><a href="http://www.steelpixel.com/">Steelpixel.com</a>
+
第三版代码:
<li><a href="http://www.superior.nl/">Superior Internet Services</a>
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails3-code.tgz
<li><a href="http://www.terrabox.com">TerraBox.com</a>
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails3-code.zip
<li><a href="http://www.textdrive.com">TextDrive</a>
+
<li><a href="http://www.thoughtbot.com/">thoughtbot, inc.</a>
+
<li><a href="http://www.typhon.net/">Typhon.net</a>
+
<li><a href="http://www.uplink.at">uplink coherent solutions&trade;</a>
+
<li><a href="http://www.vpsland.com/">VPSLAND.com: Advanced Xen VPS Hosting</a>
+
<li><a href="http://www.WebExpertsAmerica.com/">Web Experts America</a>
+
  
<li><a href="http://www.webflow.de">.webflow &#8211; german/european provider</a>
+
第四版代码:
<li><a href="http://www.webhostlist.de/host/data/compare_webhosting.php?ruby=1&#38;mb=50&#38;transfer=1000&#38;de=1">German Ruby Hoster List</a>
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails4-code.tgz
<li><a href="http://www.webonce.com/">WebOnce Technologies</a>
+
*http://download.huihoo.com/rails/agile-web-development-with-rails/rails4-code.zip
<li><a href="http://www.webslum.net/">Webslum Internet Services</a>
+
<li><a href="http://www.webspace.net.au/">WebSpace.net.au</a>
+
<li><a href="http://www.westhost.com/ruby-on-rails-hosting.html">WestHost</a>
+
<li><a href="http://www.wizhosting.com/">WizHosting.com</a>
+
<li><a href="http://www.xelhosting.com/">Xelhosting.com: Xen VPS hosting</a>
+
  
<li><a href="http://www.xentra.nl/">Xentra</a>
+
==Top ROR Demos Exampls Code==
<li><a href="http://www.xmghosting.com/">XMG Hosting</a>
+
{{SeeWikipedia|Ruby on Rails}}
<li><a href="http://www.xtrahost.net/xenvps/">Xtraordinary VPS</a>
+
<li><a href="http://www.zettai.net/">Zettai</a>
+
<li><a href="http://xeriom.net/">Xeriom Networks</a>
+
<li><a href="https://www.auriance.net/packs.php">Auriance</a>
+
<li><a href="https://www.godaddy.com/gdshop/hosting/shared.asp">GoDaddy</a>
+
<li><a href="http://apisnetworks.com/">Apis Networks</a>
+
<li><a href="http://avlux.net">AVLUX</a>
+
  
<li><a href="http://axishost.com">AxisHOST.com</a>
+
*http://www.ajaxscaffold.com Ajax Scaffold : Generates a production ready, fully styled, interface for managing models
<li><a href="http://blackcurranthost.co.uk">Blackcurrant Hosting</a>
+
*http://unspace.ca/discover/datagrid AJAX Live Data Grid Example : Data sub-forms at Unspace.ca
<li><a href="http://etecc.net">eTecc.net</a>
+
*http://calendar-grid.rubyforge.org/ CalendarGrid : build output like a calendar at RubyForge.org
<li><a href="http://fuse9.net">Fuse9</a>
+
*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
<li><a href="http://gsfactory.net">GsFactory.Net</a>
+
*http://collaboa.org/ Collaboa : a collaborative tool for developers using Subversion
<li><a href="http://gvt.hk">GVT.hk</a>
+
*http://www.jvoorhis.com/pages/calendar-helper DynamicCalendarHelper : calendar with CSS ; by Jeremy Voorhis
<li><a href="http://highspeedrails.com/">High Speed Rails</a>
+
*http://www.eribium.org/eribium/ Eribium : a Rails CMS
<li><a href="http://hospes.pl">Hospes.pl : hosting</a>
+
*http://www.hieraki.org/trac/ Hieraki2 : wiki engine / CMS
<li><a href="http://hosting.chml.ro/">CHML Hosting</a>
+
*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&#038;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 &#8220;one-click&#8221;, 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
  
<li><a href="http://hosting.media72.co.uk">Media72 Hosting</a>
+
==Top ROR Hosts==
<li><a href="http://mysticserver.com/">MysticServer</a>
+
*[http://www.3shost.com/ 3SHost]
<li><a href="http://nobudget-hoster.validcode.at">nobudget hoster</a>
+
*[http://www.a2hosting.com/ A2 Hosting]
<li><a href="http://peconihosting.com/">PeconiHosting.com<strong></a>
+
*[http://www.ambitiouslemon.com AmbitiousLemon]
<li><a href="http://plinkd.com/">Plinkd Hosting</a>
+
*[http://www.anchor.com.au Anchor Systems]
<li><a href="http://proinet.se">ProInet.se</a>
+
*[http://www.asmallorange.com/services/hosting/ A Small Orange]
<li><a href="http://railswebhost.com">RailsWebHost.com</a>
+
*[http://www.blacksun.ca/ BlackSun.ca]
<li><a href="http://rimuhosting.com/">RimuHosting Ruby on Rails Hosting</a>
+
*[http://www.bluehost.com/ BlueHost]
<li><a href="http://rootr.net/">RootR</a>
+
*[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]
  
<li><a href="http://seattleserver.com">SeattleServer.com</a>
+
==图集==
<li><a href="http://segpub.com.au">SegPub</a>
+
<gallery widths=100px heights=100px perrow=6>
<li><a href="http://successfulhosting.com/hosting/unix.php">SuccessfulHosting.com : Ruby on Rails Web Hosting</a>
+
Image:Rails-stack.jpg|Rails和J2EE堆栈的比较
<li><a href="http://theinternetco.net/offers/ruby/">The Internet Company</a>
+
Image:Rails_mindmap.png|Rails Mindmap
<li><a href="http://thinkhost.com/">ThinkHost &#8211; Ruby on Rails hosting</a>
+
Image:Thumb-rails_mindmap.png|Rails Mindmap
<li><a href="http://unbit.it/">UnBit.it</a>
+
Image:ror-mindmap.jpg|追美人项目
<li><a href="http://wish.hu">Wish Internet</a>
+
Image:ruby-on-rails.jpg|RoR Wallpaper
</ol>
+
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]]
[[Image:Rails-stack.jpg|thumb|left|Rails 和 J2EE 堆栈的比较]] [[Image:Rails_mindmap.png|thumb|left|Rails Mindmap]] [[Image:Ruby_on_rails_cheat_sheet.png|thumb|left|Ruby on rails cheat sheet]]
+
[[category:ruby]]
<br>
+
[[category:rails]]
[[Image:Thumb-rails_mindmap.png]]
+
[[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

[编辑] 图集

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

变换
操作
导航
工具箱