Skip to content

Instantly share code, notes, and snippets.

@MilanGrubnic70
Created February 14, 2016 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MilanGrubnic70/dee1678cafc1f04bbb6e to your computer and use it in GitHub Desktop.
Save MilanGrubnic70/dee1678cafc1f04bbb6e to your computer and use it in GitHub Desktop.
Sinatra Cheatsheet

require 'rubygems' # Ruby 1.9 Ruby automatically loads RubyGems so you dont' need this line. require 'sinatra' require 'data_maper'

Sinatra will always look in the public/ folder for css files. Sinatra will alwasy look in the views/ folder for erb files.

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