Skip to content

Instantly share code, notes, and snippets.

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

Introduction to Sinatra

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

To act accordingingly to whatever is sent to the server.

2. How do you pass variables into the views?

through instance vairables or locals

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

using "<%=" or "<%" tags

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

hash, params

5. What are params?

data procured in the html to be used in ruby. param[]

@Carmer
Copy link

Carmer commented Mar 22, 2016

looks good

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