O'Reilly logo

Learning Sinatra by Manoj Sehrawat, Sudeep Agarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Introduction to Sinatra

Sinatra is a Ruby-based application framework used to create web applications quickly. It can be used to write simple single-page applications or large and complex ones. Sinatra is very lightweight as it does not include a variety of gems, though the user can include gems as required.

Sinatra is widely used across the globe and has gained a lot of popularity because of its flexibility. It does not follow the Model-View-Controller (MVC) architectural pattern completely but it is fairly simple to build one on top of Sinatra. Sinatra is a View-Controller framework.

If you have been working with Ruby, you can go ahead and try out the codes; otherwise, you can go ahead with this chapter as we will be covering some basic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required