Cheat Sheet - what do you need for Ruby on Rails?
Archive - Originally posted on "The Horse's Mouth" - 2010-01-31 12:15:05 - Graham EllisHere is a "cheat sheet" of the commands you might use to install Ruby, then Gems, then Rails, then get your first application and server running.
1. Ruby
tar xf ruby-1.9.1-p376.tar.gz
cd ruby-1.9.1-p376/
./configure
make
make install
Check installation:
[root@easterton ruby-1.9.1-p376]# ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]
[root@easterton ruby-1.9.1-p376]#
2. Ruby Gems
RubyGems is a sophisticated package manager for Ruby.
See http://docs.rubygems.org/ ...
Set up gems once you've installed Ruby via:
ruby setup.rb
3. Rails
gem install rails
4. Create a framework for your first application
rails path/to/your/new/application
5. Start the server
cd path/to/your/new/application
ruby script/server
Check installation:
Browse to http://localhost:3000/
This is one of a series of summaries taking you from initial installation of Ruby and Rails through to a complete multitable application: [link] - Installing Ruby and Rails [link] - Hello World, Ruby on Rails Style [link] - What and Why - Model, View, Controller [link] - Multiple views, same model [link] - A form to allow data to be added to the model [link] - Validating data entries for storage in the model [link] - Cleanly viewing model data [link] - Complete sample, including a multiple table model These topics are covered on our Introduction to Rails day - an optional extension of Ruby Programming or Learning to program in Ruby |