Ruby on Rails is a popular web development framework that is easy to use and install on Ubuntu Dapper or Edgy. Ruby on Rails is a popular web development framework that can be used to create websites, applications, and even full-blown applications. There are a few things you need in order to install Ruby on Rails on Ubuntu Dapper or Edgy:
- Ruby 2.0 or later must be installed. This can be done by running the following command: sudo apt-get install ruby2.0
- The rails gem must be installed: sudo gem install rails
- The postgresql database must be initialized: sudo postgresql -D postgresql://localhost/var/www/html/app -p 9200 -u root -p /usr/local/bin/ruby postgresql_ruby
First you will want to make sure that you’ve enabled the universe repository.
Open up a terminal window, and type in the following commands:
To test out the installation, you can create a test rails project:
This will create a test application. Change directory into that directory and launch the Ruby on Rails development server (WEBrick)
Example:
You’ll notice that the server is listening on port 3000. Open up a browser, and go to http://localhost:3000