1. Technology

Sinatra

What is Sinatra?
Sinatra is a web framework. Simply put, it's a library that allows you to write web applications with a minimum of red tape.

Hello, Sinatra!
How to get started in Sinatra, including how to use actions, parameters, ERB and views.

Sinatra URL Matching
How do do various types of URL matching in Sinatra.

Using Haml with Sinatra
How to use Haml to create Sinatra views and layouts.

Riding Shotgun with Sinatra
Now that you can write controller logic and views and Haml, you can start putting together some more complex application. There's one very annoying thing though: Sinatra does not reload its code whenever you make a change. If you make a change, you have to stop and restart the server. This is just an extra step and generally an annoyance. This where shotgun comes in.

Using Sinatra to Provide a Web Interface for a Gem
So far, we've discussed how to use Sinatra in general, how to handle and route requests, and how to build views using Haml. Before we take the plunge into using data storage with Sinatra, let's put what we've discussed so far into practice. This article explains how to use Sinatra to provide a web interface for a gem.

A Quick Introduction to DataMapper
DataMapper is a "Object/Relational Mapper" or ORM. In other words, it maps Ruby objects to database records that makes with objects from a database a snap.

Creating Database-driven Apps with Sinatra
This article will create a rolodex application that can be used to keep track of contact information. The total line count is about 130 lines, split about half and half with code and views.

What's New in Sinatra 1.1?
Sinatra 1.1 was released on Oct. 24th, 2010. What more could you possibly add to this awesome micro-framework?

You can opt-out at any time. Please refer to our privacy policy for contact information.

©2014 About.com. All rights reserved.