Introduction to Sinatra 1. What is the purpose of the server file (routing)? It is the file that directs requests to specific places based on their address passed. 2. How do you pass variables into the views? Instance Variables & :locals hash 3. How can we interpolate ruby into a view (html)? <%= %> and <% %> 4. In what format does data come in from a view/form? What do we call it? hash, params 5. What are params? it's a hash of key/value pairs from a form? i think?
Not all of the key/value pairs in the params hash are from the params, but yes, data coming from a form will be passed through in params as well.