RubyOnRails
|
Size: 499
Comment:
|
Size: 1563
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| As we still lack a package for this. | = RubyOnRails = |
| Line 3: | Line 3: |
| 1) Install RubyGems http://docs.rubygems.org/read/chapter/3 Attention: ’’apt-get’’ '''libyaml-ruby''' and '''libzlib-ruby''' before installing RubyGems |
Rails is a full-stack web development framework implemented in Ruby for developing database-backed web applications according to the Model-View-Control pattern of separation. |
| Line 7: | Line 5: |
| 2) Install RubyOnRails For this, you will need '''irb''' and '''rdoc''' as dependencies, then, as root (if you choose the system wide install): # gem install rails --include-dependencies |
|
| Line 11: | Line 6: |
| 3) Init Web App | == Getting started. What is needed: == * {{{Ruby}}} - Ruby 1.8.2 is recommended for use with Rails despite the presence of 1.8.3. The latter has had a number of issues that would encourage people to stay on the former and await Ruby 1.8.4 * {{{RubyGems}}} - RubyGems is the standard Ruby package manager. Similar to apt-get, but is used for installing Ruby libraries and applications. Gems are sorta like .debs (Preffered way of installing Rails and it's dependencies) * {{{Rails}}} - With {{{RubyGems}}} loaded, you can install all of Rails and its dependencies. == Installation == Note: Ensure that you have the Universe repository enabled in your /etc/sources.list. See https://wiki.ubuntu.com/AddingRepositoriesHowto 1) Install Ruby sudo apt-get install ruby rdoc1.8 irb libyaml-ruby libzlib-ruby 2) Install RubyGems wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz tar xzvf rubygems-0.8.11.tgz cd rubygems-0.8.11 sudo ruby setup.rb sudo gem update --system 3) Install Rails and it's dependencies (with RubyGems) sudo gem install rails -y |
| Line 15: | Line 43: |
| Hope this will do. | Packages are also available in the Universe repository for Rails. http://packages.ubuntu.com/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=rails |
RubyOnRails
Rails is a full-stack web development framework implemented in Ruby for developing database-backed web applications according to the Model-View-Control pattern of separation.
Getting started. What is needed:
* Ruby - Ruby 1.8.2 is recommended for use with Rails despite the presence of 1.8.3. The latter has had a number of issues that would encourage people to stay on the former and await Ruby 1.8.4
* RubyGems - RubyGems is the standard Ruby package manager. Similar to apt-get, but is used for installing Ruby libraries and applications. Gems are sorta like .debs (Preffered way of installing Rails and it's dependencies)
* Rails - With RubyGems loaded, you can install all of Rails and its dependencies.
Installation
Note: Ensure that you have the Universe repository enabled in your /etc/sources.list. See https://wiki.ubuntu.com/AddingRepositoriesHowto
1) Install Ruby
sudo apt-get install ruby rdoc1.8 irb libyaml-ruby libzlib-ruby
2) Install RubyGems
wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
tar xzvf rubygems-0.8.11.tgz
cd rubygems-0.8.11
sudo ruby setup.rb
sudo gem update --system
3) Install Rails and it's dependencies (with RubyGems)
sudo gem install rails -y
As your working user: $ rails /complete/path/to/new/railsapp
Packages are also available in the Universe repository for Rails.
RubyOnRails (last edited 2008-08-06 16:37:14 by localhost)