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

Summary

In this chapter, we discussed how to design routes and add methods to the model. We saw how sessions can be used to pass user information across requests and perform basic operations on lists, such as create, fetch, edit, delete, and so on. We also used the before block to easily check for valid user sessions. Additionally, using an ORM made the task a lot simpler than writing raw SQL queries. In the next chapter, we will see how to design HTML pages using HAML.

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