Sinatra Video Review Forms

Overview

In this video, we will review the development of basic web application using the Sinatra MVC framework. The lecture uses slides and coding walkthroughs to present students with a comprehensive overview of basic concepts. The emphasis is on Sinatra, but topics from many recent lessons are discussed. These include Rack, ORMs, CSS, and others.

We will begin by explaining how to mount a controller and then outlines the 7 controller actions that display and modify data. Using a photo sharing website as an example, the video details how to set up a PostsController class that incorporates these 7 actions. Route Variables, Query Strings, and the params hash are defined and demonstrated within this example. We then will explain how to write an HTML form and then post that form to the website.

It is very important that students have a thorough understanding of Sinatra before moving forward. You should feel free to watch this lecture as many times as necessary, and you are encouraged to search for additional resources using google or your favorite search engine.

Objectives

  1. Learn how to build/onboard an application with CRUD functionality
  2. Describe REST and the request cycle
  3. Use config.ru to start web apps using Rack
  4. Use Shotgun to spin up a server
  5. Explain basic Sinatra MVC structure in relation to web apps
  6. Explain the uses of HTTP verbs for sending and receiving data
  7. Explain how languages, DSLs, frameworks, clients, and databases work together in a stack

Video

View Sinatra Video Review: Forms on Learn.co and start learning to code for free.

Unlock your future in tech
Learn to code.

Learn about Flatiron School's Mission

With a new take on education that falls somewhere between self-taught prodigy and four-year computer science degree, the Flatiron School promises to turn students with little programming experience into developers.

In the six months since the Manhattan coding school was acquired by WeWork, it has spawned locations in Washington, D.C., Brooklyn, and London. Now, WeWork is opening a fourth Flatiron School location, this time in Houston.

Adam Enbar, Flatiron School's cofounder, believes now is the time to grow. "How the world is changing has impacted working and learning in very similar ways. We think education fundamentally is about one thing: enabling people to pursue a better life."

Learn. Love. Code.
Students come to Flatiron School to change their lives. Join our driven community of career-changers and master the skills you need to become a software engineer or a data scientist.
Find Us