January 2013
Beginner
150 pages
3h 33m
English
In the last chapter, we created a Song model and database table to store the songs in. We also created a web front end for creating, reading, editing, and deleting them.
In this chapter, we’ll look at the different settings that are available in Sinatra and learn how to configure an application. We’ll also address using sessions and discover how they can be employed to create a simple login system. Later, we’ll cover deploying our application live on the Internet using the Heroku service.
Any configuration options for a Sinatra application can be set in a configure block:
configure do #configuration options go here end
Code inside this block is run only once at startup. You can have ...
Read now
Unlock full access