Browsing Tag

sinatra

How to Integrate rspec into a Sinatra App
videos

How to Integrate rspec into a Sinatra App

In today’s video tutorial, I’m going to teach you how to use rspec within a Sinatra application. Along the way, we’ll also arrange for autotesting with Growl notifications so that our tests run automatically when we save our projects. If you’re quite new to the idea of testing, this is the perfect introduction.

An Introduction to Haml and Sinatra

An Introduction to Haml and Sinatra

Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+. This tutorial was first published in October, 2010.

This tutorial will introduce Haml and Sinatra. Haml is a markup language that produces clean, well-structured HTML. Sinatra is a simple but powerful Ruby framework for creating websites or web services. The two work very well together and provide a powerful tool for quick and simple web development. I find them ideal for prototyping.

Singing with Sinatra – The Encore

Singing with Sinatra – The Encore

Welcome back to Singing with Sinatra! In this third and final part we’ll be extending the “Recall” app we built in the previous lesson. We’re going to add an RSS feed to the app with the incredibly useful Builder gem, which makes creating XML files in Ruby a piece of cake. We’ll learn just how easy Sinatra makes escaping HTML from user input to prevent XSS attacks, and we’ll improve on some of the error handling code.


This entry is part 3 of 3 in the Singing with Sinatra Session
Singing with Sinatra

Singing with Sinatra

Welcome to Track 1 of “Singing with Sinatra.” In this mini-series we’ll be taking a look at Sinatra; a small, yet incredibly powerful DSL for quickly creating Ruby web applications. In this part, we’ll get started with Sinatra by playing around with a few routes, learning how to access URL parameters and how to POST data between pages.


This entry is part 1 of 3 in the Singing with Sinatra Session