Hello world with Ruby on Rails
In this recipe, you will learn how to create a simple web application using Ruby on Rails (RoR). You can repeat the instruction in this recipe when building the other recipes in this chapter.
Getting ready
Rails is a web application development framework written in the Ruby language. So, you need to have some prerequisites installed; you should install both the Ruby language and the RubyGems packaging system. Read the Installing Sass for command line usage recipe of Chapter 1, Getting started with Sass or visit https://www.ruby-lang.org/en/documentation/installation/ to find out how to install Ruby and RubyGems.
How to do it...
Learn how to set up a Ruby on Rails app by performing the following steps:
- After installing Ruby and RubyGems, you can run the following command in your console to install Rails:
gem install rails
- Now, you create a new RoR web application by running the following command in your console:
rails new recipe1
- The command from the previous step...