Verified and tested 4/10/15
Installing Rails in Ubuntu has gotten much easier in recent days. The easiest way to do is via installing RVM (Ruby Version Manager).
An Ubuntu server. If you do not have one and would like to purchase one, you can visit our VPS Hosting page and spin a new server up in under 30 seconds.
Installing Rails on Ubuntu
To get started, copy and paste the following into your terminal:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
After this, run the following command to start installing rails:
curl -sSL https://get.rvm.io | bash -s stable –-rails
After installing rails, you need to run the following command:
In order to test if ruby and rails are installed, running the following commands should return the version number.
After you verify that both ruby and rails are installed, you can start to create a new rails app.
To create a new rails app, type:
rails new app_named
This should create a skeleton rails app. Congratulations! You should now have rails installed on your ubuntu server.