Created
May 30, 2009 15:00
-
-
Save vangberg/120525 to your computer and use it in GitHub Desktop.
minimal sinatra rackup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/' do | |
"Hello world" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'app' | |
run Sinatra::Application |
require 'app'
might be replaced with
require './app'
In case of error
cannot load such file -- app (LoadError)
Thanks for this. And thanks @devsli - that helped me.
Thanks!
Thanks a lot!
P.S. ruby has additional method to require files by relative path - require_relative
. Checkout docs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.