私のWebアプリケーションを動作させるのに問題があります。それだけで罰金を起動するが、私は、要求薄いクラップスを作る時はいつでも、私は次のログにポップアップを取得:Thin Throwsエラー:定義されていないメソッド "call"
>> 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を実行しています。
これは私のrackupファイルです:
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
は、我々は要求を処理するウェブアプリケーションのコードを見ることができます行を削除しますか? –
ラックアップファイルを一番上に追加しました。 – jibcage