Sutto/barista

application error NoMethodError at / undefined method `present?' for CoffeeScript::Engines::Node:Module

sjoonk opened this issue · 1 comments

I am using barista in my new Sinatra app.
this is my source code.

require 'rubygems'
require 'sinatra'
require 'json'
require 'barista'

Barista.configure do |c|
c.app_root = setting.root
c.root = File.join(settings.root, 'coffeescripts')
end

get '/' do
erb :index
end

When i run my app, then an error occurred.

NoMethodError at /
undefined method `present?' for CoffeeScript::Engines::Node:Module

I don't know what exactly this error is.
any idea??

Sorry. I got the answer.

present? is a active_support extension method, and in Sinatra i didn't require 'active_support/core_ext' so the error occurred. I think the 'present?' method might not used in barita for non-rails based framework support.

Thank you.