在导轨中安装 sinatra 应用程序时出错
我有一个 Rails 应用程序,它又在其中使用 sinatra 应用程序。我现在将此行添加到路由中,
mount TestApp::Application => "/test_app"
提供的 /test_app
路由
TypeError (no marshal_dump is defined for class Mutex)
同时访问它在 Ruby 1.9.2 和 Rails 3.2.1 上运行时 。 Sinatra 应用程序使用 mongo gem。
现在,当我针对 ruby 1.8.7 和 Rails 3.2.1 运行此应用程序时,它会给出以下错误
TypeError (can't dump TCPSocket)
非常感谢任何帮助。
I have a rails application that in turn uses sinatra app in it. I added this line to routes
mount TestApp::Application => "/test_app"
now while accessing /test_app
routes it gives
TypeError (no marshal_dump is defined for class Mutex)
if ran against Ruby 1.9.2 and rails 3.2.1. Sinatra app uses mongo gem.
Now when I run this app against ruby 1.8.7 and rails 3.2.1, it gives following error
TypeError (can't dump TCPSocket)
Any help is highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您正确地需要 TestApp::Application ,我认为您的路线定义应该是:
请参阅 从外向内的铁路路由了解更多信息。
Assuming you've required your TestApp::Application correctly, I think your routes definition should be:
See Rails Routing from the Outside in for more info.