Sutto / barista

Simple, transparent CoffeeScript support for Rails and Rack apps.
MIT License
398 stars 27 forks source link

Barista + Sinatra #39

Open andoriyu opened 13 years ago

andoriyu commented 13 years ago

I did everything as in README. But when i try to load my app, i get this:

NoMethodError at / undefined method `debug' for nil:NilClass file: barista.rb location: debug line: 198

ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] sinatra (1.2.3) barista (1.0.0)

tbbooher commented 12 years ago

i wish their documentation were better on this -- i'm stumped as well

tbbooher commented 12 years ago

app.rb

set :haml, :format => :html5

class Application < Sinatra::Base register Barista::Integration::Sinatra end

get "/" do haml :index end