Doing the getting started of Sinatra. I get this error:
./sinatra.rb:5: undefined method `get' for main:Object (NoMethodError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from sinatra.rb:3
Googling on these errors returns ruby LoadError: cannot load such file which I don't see how that relates to Sinatra
.
Not sure what other info I need to share to make my question clearer. So just tell me what other commands I should run to make the question clear.
UPDATE: Actual code
# sinatra.rb
require 'rubygems'
require 'sinatra'
get '/' do
'hey girl'
end