Now that we are confident with Ruby, let's get into action and start writing an application. Make sure that you have Ruby installed. We will get a basic skeleton app up and running and see how to structure the application.
In this chapter, we will discuss the following topics:
Before we begin writing our application, let's write the Hello World application.
We have seen the Hello World program in the first chapter:
1 require 'sinatra' 2 3 get '/' do 4 return 'Hello World!' 5 end
We have also discussed how this code works:
Executing this from the command line will run ...