精简错误:未定义的方法“调用”

时间:2012-03-15 14:26:09

标签: ruby debian rack thin gentoo

我无法瘦身来运行我的webapp。它启动就好了,但每当我提出请求时,我会在日志中弹出以下内容:

>> Listening on 0.0.0.0:3000, CTRL+C to stop
!! Unexpected error while processing request: undefined method `call'
   for #<Rack::Request:0x7f104facb640>

这个配置在我的Debian服务器上运行得很好;我现在正在运行Gentoo。

这是我的机架文件:

require 'toto'
# Rack config
use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico', '/pubkey.asc'], :root => 'public'
use Rack::Request
use Rack::CommonLogger
if ENV['RACK_ENV'] == 'development'
  use Rack::ShowExceptions
end
#
# Create and configure a toto instance
#
toto = Toto::Server.new do
#
 # Add your settings here
 # set [:setting], [value]
 #
 set :author,    "jibcage"                               # blog author
 set :title,     "Going to Grass"                   # site title
 set :root,      "index"                                   # page to load on /
 # set :date,      lambda {|now| now.strftime("%d/%m/%Y") }  # date format for articles
 set :markdown,  :smart

1 个答案:

答案 0 :(得分:0)

删除

use Rack::Request