/home/web-programming/rubyonrails/

Ruby on Rails: Getting Started

Ruby is an open-source, object-oriented scripting language developed in the mid-1990s. Rails is an open-source framework written in Ruby. The two together create a powerful union!

Step One: Installation

If you are new to Ruby on Rails, start by using RailsInstaller to install Ruby, Rails, Git Sqlite, and more...

Step Two: Create a Sample Application

Create a directory on your computer, launch terminal, cd to the directory, and enter the items below:

  1. $rails new myapp
  2. $cd myapp
  3. $rails generate scaffold User username:string password:string
  4. $rake db:create
  5. $rake db:migrate
  6. $rails server

Step Three: View Application

Open your browser and go to http://localhost:3000/