Member-only story
Getting Started With Rails Part 1
I am writing this post in order to reaffirm my understanding of the Rails framework, I am going to build from scratch the “Getting started with Rails” article app and document the process. Please refer to the link provided above for the official rails tutorial, I will cover most of what is in there however I am going to make a few additional modifications too. This tutorial is written with the assumption you are using a Unix based system and terminal ie Mac OS/Linux.
- Ensure Rails and Ruby are installed on your system You can manage your Ruby versions via the RVM (ruby version manager), before installing Rails you need to have the following on your system.
Once you have installed everything to get the Rails framework you will need to run the following command.
$ gem install rails
2. Create a Rails project
To make a new rails project it’s super easy, you simply navigate to a directory you would like to use and run the command below, I'm going to call my project “on-the-rails”.
$ rails new on-the-rails --database=postgresql
The additional — database=postgresql configures our project to use PSQL appose to Ruby on rails SQLite, this is not necessary however I’d recommend it as SQLite is not commonly shipped with production code. For more information on getting this up and running…