好吧,我在 $RUBYLIB/gems/formtastic-2.2.1/lib/formtastic 中找不到它
我也有这个目录我不明白:
/home/web/.bundler/ruby/1.9.1/formtastic-bootstrap-3428fef4f787
其中也不包括 formtastic/bootstrap.rb ,但我不知道为什么捆绑在那里存放那个宝石。我bundle install
以 root 身份运行,而不是 web(谁拥有 Rails 文件)。
这颗宝石有一些很奇怪的地方。当我运行bundle package
Gemfile 中的所有其他 gem 时,会被写入 vendor/bundle/ruby/1.9.1/gems/ 但不是这个。下面是它在 Gemfile 中的引用方式:
gem 'formtastic-bootstrap', :git => "git://github.com/cgunther/formtastic-bootstrap.git", :branch => "bootstrap-2"
有什么建议么?