新手问题 关于 PDFkit 做中间件无法生成 PDF 的问题

topswim · 2013年10月16日 · 2552 次阅读
-MacBook-Pro:omm$ rake middleware
use ActionDispatch::Static
use Rack::Lock
use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007ff73cdd4358>
use Rack::Runtime
use Rack::MethodOverride
use ActionDispatch::RequestId
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions
use ActionDispatch::DebugExceptions
use ActionDispatch::RemoteIp
use ActionDispatch::Reloader
use ActionDispatch::Callbacks
use ActiveRecord::ConnectionAdapters::ConnectionManagement
use ActiveRecord::QueryCache
use ActionDispatch::Cookies
use ActionDispatch::Session::CookieStore
use ActionDispatch::Flash
use ActionDispatch::ParamsParser
use ActionDispatch::Head
use Rack::ConditionalGet
use Rack::ETag
use ActionDispatch::BestStandardsSupport
use PDFKit::Middleware
run Omm::Application.routes
l-MacBook-Pro:omm l$ thin strat
Unknown command: strat. Use one of start, stop, restart, config
lius-MacBook-Pro:omm liucc$ thin start
>> Using rack adapter
/Users/liucc/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.12/lib/action_dispatch/http/mime_type.rb:102: warning: already initialized constant PDF
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
^C>> Stopping ...
l-MacBook-Pro:omm l$ thin start
>> Using rack adapter
/Users/liucc/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.12/lib/action_dispatch/http/mime_type.rb:102: warning: already initialized constant PDF
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop

提交后浏览器一直是读取状态,后台进程也调起,但是无法最后显示。

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号