Error when starting Sinatra: “tried to create Proc object without a block”

只愿长相守 提交于 2019-12-01 20:43:21

From what I can tell, and I've encountered this before, v1.2.5 of Sinatra is the problem. v1.2.3 doesn't do it, so try

gem install sinatra -v 1.2.3

to install the previous version, then add:

gem 'sinatra', '=1.2.3'

before the require statement.

This is documented as an issue.


EDIT: Sinatra just bumped to a new version, 1.2.6, which fixes this problem. Use gem update sinatra, followed by gem uninstall sinatra -v 1.2.5 to remove the old, buggy, version.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!