0

在使用版本 2.4.1.beta 加载模型之前使用选项加载其他文件时,该annotate命令会失败。-R似乎找到了文件,但仍然发生错误(如果我使用通配符路径,第一个文件将显示为错误)。此处出现类似的错误消息(https://github.com/ctran/annotate_models/issues/78)解决方案可以使用:

gem 'annotate', github: 'ctran/annotate_models'

但是如果我用上面annotate的替换,Gemfile然后做:

gem uninstall annotate
bundle install

然后bundle在第一行报告:
Updating git://github.com/ctran/annotate_models.git

及更高版本:
使用来自 git://github.com/ctran/annotate_models.git 的注释(2.5.0.pre1)(在master)

请注意,两条消息都没有显示“正在安装”。然后执行annotate以找不到注释可执行文件结束。有什么解决办法吗?(红宝石 1.9.2p280,Rails 3.2.2)

4

0 回答 0