Skip to content

Instantly share code, notes, and snippets.

Introduction to Sinatra

1. What is the purpose of the server file (routing)?

Contains all the verbs and routing, to give back the info that is requested.

2. How do you pass variables into the views?

  Through instance variables 
  setting :locals

3. How can we interpolate ruby into a view (html)?