欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Rails
来自开放百科 - 灰狐
(版本间的差异)
(→精彩图集) |
(→精彩图集) |
||
第307行: | 第307行: | ||
==精彩图集== | ==精彩图集== | ||
− | <gallery perrow= | + | <gallery perrow=6> |
Image:Rails-stack.jpg|Rails和J2EE堆栈的比较 | Image:Rails-stack.jpg|Rails和J2EE堆栈的比较 | ||
Image:Rails_mindmap.png|Rails Mindmap | Image:Rails_mindmap.png|Rails Mindmap |
2010年8月17日 (二) 10:26的版本
Ruby on 是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上。它被宣传为现有企业框架的一个替代,而它的目标,简而言之,就是让生活,至少是 Web 开发方面的生活,变得更轻松。
目录 |
开发指南
- Ruby on Rails on Debian
- Install Ruby Rails Lighttpd MySQL on Ubuntu or FreeBSD
- Emacs support for Ruby and Rails
- Huihoo Ruby Applications
- RadRails - A Ruby on Rails IDE
- Yehuda Katz 的博客: Katz 是 Rails 的核心贡献者, 同时也是 Merb 和 Rails 整合的首席架构师.
深入Rails
安装 Ruby & 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 2.x
按顺序安装
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.x
安装 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
强力推荐这个例子 :)
- 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 // 创建新的表
- 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
成功应用
- http://www.43people.com/
- http://www.43things.com/
- http://www.43space.com/
- 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/
Projects
- 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
数据库
- MySQL - http://www.tmtm.org/en/mysql/ruby
- PostgreSQL - http://ruby.scripting.ca/postgres
- SQLite - http://rubyforge.org/projects/sqlite-ruby
- Oracle - http://rubyforge.org/projects/ruby-oci8
- DB2 - http://raa.ruby-lang.org/project/ruby-db2
相关链接
- Ruby & Rails 网址
- http://www.rubyonrails.org/
- Rails 文档: http://www.huihoo.com/ruby/rails/api/
- Ruby on Rails Documentation - http://railsmanual.org/
- Ruby On Rails Blog: http://www.rubyonrailsblog.com/
- OpenSourceProjects in Ruby on Rails - http://wiki.rubyonrails.org/rails/pages/OpenSourceProjects
- http://wiki.rubyonrails.org/
- http://www.econsultant.com/web-developer/
- http://railscn.crispynews.com/
- http://rorcast.blogger2blogger.com/
- Clearance: 这是一个预打包的 Rails 解决方案, 有助于用户身份验证.
- 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
书籍
http://www.china-pub.com/computers/common/info.asp?id=30058
第一版代码:
- http://media.pragprog.com/titles/rails/code/rails-code.tgz
- http://media.pragprog.com/titles/rails/code/rails-code.zip
第二版代码:
- http://media.pragprog.com/titles/rails2/code/rails-code.tgz
- http://media.pragprog.com/titles/rails2/code/rails-code.zip
Top ROR Demos Exampls Code
- 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
- 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</a>
- http://www.dewahost.com">DewaHost</a>
- http://www.downtownhost.com/">DowntownHost</a>
- http://www.dreamhost.com/">DreamHost</a>
- http://www.eastsolid.com">EastSolid.com</a>
- http://www.freeonrails.com">FreeOnRails</a>
- http://www.gazzin.com">Gazzin.com</a>
- http://www.gearworx.net/">Gearworx</a>
- http://www.geekisp.com/">GeekISP</a>
- http://www.grokthis.net/">GrokThis.net</a>
- http://www.happygecko.com">Happy Gecko – English speaking ISP in Spain</a>
- http://www.hardfocus.com/network">Hardfocus Media – Web Hosting</a>
- http://www.honeycomb.net/">Honeycomb</a>
- http://www.hostbrigade.com/">HOST BRIGADE</a>
- http://www.hostcentral.net.au">Hostcentral</a>
- http://www.hostexpress.com.au">HostExpress</a>
- http://www.hostingmetro.com">HostingMetro.com</a>
- http://www.hostingrails.com">Hosting Rails</a>
- http://www.hostm.com">HostM.com Web Hosting</a>
- http://www.hostmg.com">HostMG.com</a>
- http://www.hostmysite.com/rails/">HostMySite</a>
- http://www.hostpc.com">HostPC Internet Services</a>
- http://www.hub.org">Hub.org</a>
- http://www.inethoster.net/forum/index.php">iNetHoster</a>
- http://www.jaguarpc.com/">JaguarPC</a>
- http://www.jumba.com.au">Jumba</a>
- http://www.kattare.com/">Kattare Internet Services</a>
- http://www.locaweb.com.br">Locaweb</a>
- http://www.lunarpages.com/">Lunarpages</a>
- http://www.max-king.com/">max-king Hosting</a>
- http://www.monkeywrenchhosting.com">MonkeyWrench Hosting</a>
- http://www.monsterhosting.ca">MonsterHosting.ca</a>
- http://www.ncisolutions.com/">NeonCube Internet Solutions</a>
- http://www.net.ru">Net.Ru</a>
- http://www.netfirms.com/">Netfirms</a>
- http://www.networkredux.com/">NetworkRedux</a>
- http://www.nodeta.fi/">Nodeta</a>
- http://www.ocssolutions.com/virtual-hosting.php">OCS Solutions</a>
- http://www.openhosting.com/">OpenHosting</a>
- http://www.phpwebhosting.com/">PHPWebHosting</a>
- http://www.pil.dk/">pil.dk</a>
- http://www.pipespring.com/">Pipespring</a>
- http://www.planet-work.fr/">Planet-Work</a>
- http://www.planetargon.com/rails_hosting.html">PLANET ARGON</a>
- http://www.plutomic.com">Plutomic Hosting</a>
- http://www.primehosting.co.uk/">Prime Hosting</a>
- http://www.prioserve.nl">Prioserve.nl</a>
- http://www.python-hosting.com">Python-Hosting.com</a>
- http://www.railsbase.com/">RailsBase</a>
- http://www.railshost.cn">RailsHost.cn</a>
- http://www.railshosting.org">RailsHosting.org</a>
- http://www.railsplayground.com">RailsPlayground.com</a>
- http://www.razorlogix.net">RazorLogix.net</a>
- http://www.revolutionhosting.net/">Revolution Hosting</a>
- http://www.rubyonrailshosting.net">RubyOnRailsHosting.net</a>
- http://www.rushedsunlight.com/">Rushedsunlight.com – no nonsense, with Rails support</a>
- http://www.servernation.nl/">Server Nation</a>
- http://www.serverpowered.com/">Server Powered</a>
- http://www.seven.net.nz/">Seven Internet</a>
- http://www.simplehost.co.nz/">Simplehost</a>
- http://www.site5.com/affiliates/idevaffiliate.php?id=677">Site5</a>
- http://www.skull.co.nz/">Skull</a>
- http://www.slingshothosting.com">Slingshot</a>
- http://www.smarthost.ro/">Smarthost Romania</a>
- http://www.soyhost.com/">soyhost</a>
- http://www.squidhost.com/">Squidhost.com – Ruby on Rails & PHP5!</a>
- http://www.steelpixel.com/">Steelpixel.com</a>
- http://www.superior.nl/">Superior Internet Services</a>
- http://www.terrabox.com">TerraBox.com</a>
- http://www.textdrive.com">TextDrive</a>
- http://www.thoughtbot.com/">thoughtbot, inc.</a>
- http://www.typhon.net/">Typhon.net</a>
- http://www.uplink.at">uplink coherent solutions™</a>
- http://www.vpsland.com/">VPSLAND.com: Advanced Xen VPS Hosting</a>
- http://www.WebExpertsAmerica.com/">Web Experts America</a>
- http://www.webflow.de">.webflow – german/european provider</a>
- http://www.webhostlist.de/host/data/compare_webhosting.php?ruby=1&mb=50&transfer=1000&de=1">German Ruby Hoster List</a>
- http://www.webonce.com/">WebOnce Technologies</a>
- http://www.webslum.net/">Webslum Internet Services</a>
- http://www.webspace.net.au/">WebSpace.net.au</a>
- http://www.westhost.com/ruby-on-rails-hosting.html">WestHost</a>
- http://www.wizhosting.com/">WizHosting.com</a>
- http://www.xelhosting.com/">Xelhosting.com: Xen VPS hosting</a>
- http://www.xentra.nl/">Xentra</a>
- http://www.xmghosting.com/">XMG Hosting</a>
- http://www.xtrahost.net/xenvps/">Xtraordinary VPS</a>
- http://www.zettai.net/">Zettai</a>
- http://xeriom.net/">Xeriom Networks</a>
- https://www.auriance.net/packs.php">Auriance</a>
- https://www.godaddy.com/gdshop/hosting/shared.asp">GoDaddy</a>
- http://apisnetworks.com/">Apis Networks</a>
- http://avlux.net">AVLUX</a>
- http://axishost.com">AxisHOST.com</a>
- http://blackcurranthost.co.uk">Blackcurrant Hosting</a>
- http://etecc.net">eTecc.net</a>
- http://fuse9.net">Fuse9</a>
- http://gsfactory.net">GsFactory.Net</a>
- http://gvt.hk">GVT.hk</a>
- http://highspeedrails.com/">High Speed Rails</a>
- http://hospes.pl">Hospes.pl : hosting</a>
- http://hosting.chml.ro/">CHML Hosting</a>
- http://hosting.media72.co.uk">Media72 Hosting</a>
- http://mysticserver.com/">MysticServer</a>
- http://nobudget-hoster.validcode.at">nobudget hoster</a>
- http://peconihosting.com/">PeconiHosting.com</a>
- http://plinkd.com/">Plinkd Hosting</a>
- http://proinet.se">ProInet.se</a>
- http://railswebhost.com">RailsWebHost.com</a>
- http://rimuhosting.com/">RimuHosting Ruby on Rails Hosting</a>
- http://rootr.net/">RootR</a>
- http://seattleserver.com">SeattleServer.com</a>
- http://segpub.com.au">SegPub</a>
- http://successfulhosting.com/hosting/unix.php">SuccessfulHosting.com : Ruby on Rails Web Hosting</a>
- http://theinternetco.net/offers/ruby/">The Internet Company</a>
- http://thinkhost.com/">ThinkHost – Ruby on Rails hosting</a>
- http://unbit.it/">UnBit.it</a>
- http://wish.hu">Wish Internet</a>
精彩图集
分享您的观点