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, you learned how to create a form and its necessary attributes and how it works. We saw the importance and usage of the method and action attributes of a form. We created a page to add a new list and multiple items in that list with a html form. You also learned how to add items to the form through JavaScript dynamically using a simple dummy template. We saw how we can handle user form data on the backend. You also learned about implementing validations and the types of validations.

In the next chapter, you will learn how to connect and communicate with the database in Sinatra.

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