December 2013
Intermediate to advanced
302 pages
7h 50m
English
In our first day of learning Sinatra, we’ll begin by setting up a “Hello, world” example to make sure our environment is working properly. We’ll also see how we can write automated tests that exercise the code we wrote. Without any further ado, we’ll jump into creating a sample application that we’ll grow throughout the chapter as we discover more of Sinatra’s features.
Let’s start by saying hello to Sinatra.
From your command line, make sure you have Ruby and RubyGems installed:
| | $ ruby -v |
| | ruby 2.0.0 |
| | |
| | $ gem -v |
| | 2.0.2 |
We’re using Ruby 2.0, but Sinatra works just as well with Ruby 1.9. If these commands do not work, visit the Ruby download page to install Ruby for your operating ...
Read now
Unlock full access