Skip to content

Instantly share code, notes, and snippets.

@mytrile

mytrile/app.rb Secret

Created March 9, 2011 07:20
Show Gist options
  • Save mytrile/77f05f3f8b8525cf181a to your computer and use it in GitHub Desktop.
Save mytrile/77f05f3f8b8525cf181a to your computer and use it in GitHub Desktop.
# using ruby 1.9.2-p180 installed with rvm on Fedora 14
require 'rubygems'
require 'goliath'
class Test < Goliath::API
def response env
[200,{}, "Hello WOrld"]
end
end
ruby app.rb -sv -p 9000
/home/dimitar.kostov/.rvm/gems/ruby-1.9.2-p180/gems/goliath-0.9.0/lib/goliath/application.rb:48:in `const_get': uninitialized constant Kernel::App (NameError)
from /home/dimitar.kostov/.rvm/gems/ruby-1.9.2-p180/gems/goliath-0.9.0/lib/goliath/application.rb:48:in `run!'
from /home/dimitar.kostov/.rvm/gems/ruby-1.9.2-p180/gems/goliath-0.9.0/lib/goliath/application.rb:87:in `block in <module:Goliath>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment