【发布时间】:2012-04-29 05:15:16
【问题描述】:
我刚刚为 Ruby on Rails 和 Twitter Bootstrap 安装了 formatastic-bootstrap gem。根据自述文件,我将*= require formtastic-bootstrap 添加到application.css,创建了一个名为config/initializers/formtastic.rb 的文件,其内容为Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder,然后运行了捆绑安装。当我现在尝试启动我的 rails 服务器时,我收到以下错误。
/Users/wrightgd/.rvm/gems/ruby-1.9.3-p0/gems/formtastic-bootstrap-1.1.1/lib/formtastic-bootstrap/helpers/buttons_helper.rb:5:in `': 无法加载此类文件 -- formtastic/helpers/buttons_helper (LoadError)
我在这里做错了什么?提前感谢您的帮助!
【问题讨论】:
标签: ruby-on-rails twitter-bootstrap formtastic