Closed jashmenn closed 12 years ago
gdash.rb should require 'sinatra/base' not sinatra otherwise you get the sinatra DSL imported into Object. From the sinatra documentation:
gdash.rb
require 'sinatra/base'
sinatra
Your file should require sinatra/base instead of sinatra; otherwise, all of Sinatra's DSL methods are imported into the main namespace.
See: http://www.sinatrarb.com/intro
Sorry, I'll change this to a pull request.
gdash.rb
shouldrequire 'sinatra/base'
notsinatra
otherwise you get the sinatra DSL imported into Object. From the sinatra documentation:See: http://www.sinatrarb.com/intro