Pointo Senshi
Pointo Senshi

Reputation: 551

Torquebox: unable to work with SLIM

How do I launch a simple Sinatra app with Torquebox and slim as a html rendering engine?

Plain html works fine... whenever I use slim the server fails:

HTTP Status 500 - org.jruby.exceptions.RaiseException: (NoMethodError) undefined method join' for #<String:0xf94f510>

I am dying to get torquebox up and running!

config.ru:

require 'rubygems'
require 'sinatra'
require File.expand_path '../hello.rb', __FILE__
run Sinatra::Application

hello.rb:

get '/' do
  File.read(File.join('public', 'index.html'))
end

get '/kalli' do
  slim :some_file
end

Upvotes: 2

Views: 120

Answers (0)

Related Questions