【问题标题】:formtastic-bootstrap installationformtastic-bootstrap 安装
【发布时间】: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


    【解决方案1】:

    根据this 最新版本的formtastic 与formtastic-bootstrap 不兼容。试试旧版本gem 'formtastic', " ~> 2.1.1"

    【讨论】:

    • 支持 2.2 大约需要 30 天。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-18
    • 1970-01-01
    • 2015-11-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多