Skip to content

Instantly share code, notes, and snippets.

@JaredRoth
Forked from Carmer/Intro_to_sinatra_check.md
Last active March 22, 2016 04:51
Show Gist options
  • Save JaredRoth/e3759601c195097a2ac9 to your computer and use it in GitHub Desktop.
Save JaredRoth/e3759601c195097a2ac9 to your computer and use it in GitHub Desktop.

Introduction to Sinatra

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

  • The server file specifies all routing requests and related operations.

2. How do you pass variables into the views?

  • As instance variables or using the locals hash

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

  • Use ERB

4. In what format does data come in from a view/form? What do we call it?

  • HTML

5. What are params?

  • The data submitted from a form
@Carmer
Copy link

Carmer commented Mar 22, 2016

A view is html, data that comes from a view as the value in our params hash has a String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment