Skip to content

Instantly share code, notes, and snippets.

@dohoonk
Created January 26, 2016 21:38
Show Gist options
  • Select an option

  • Save dohoonk/16f529d1dfbc113a8166 to your computer and use it in GitHub Desktop.

Select an option

Save dohoonk/16f529d1dfbc113a8166 to your computer and use it in GitHub Desktop.
codecore

Sinatra

HTTP verbs HTTP URL

GET / (homepage) POST /about (about part of your application) PATCH/PUT /info.html /data.json /articles/15 DELETE

GET -----------> display POST ---------> create/ add PUT/PATCH -----> update Delete -------> delete

gem install sinatra-contrib --no-ri --no-rdoc

?key = value & city = burnaby

%20 -----> space

erb embeded ruby Templating system

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