Search code examples
ruby-on-railstwitter-bootstrapformtastic

formtastic-bootstrap installation


I just installed the formatastic-bootstrap gem for Ruby on Rails and Twitter Bootstrap. Per the readme file, I added *= require formtastic-bootstrap to application.css, I created a file called config/initializers/formtastic.rb whose contents are Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder, and I ran bundle install. When I try to start my rails server now, I get the following error.

/Users/wrightgd/.rvm/gems/ruby-1.9.3-p0/gems/formtastic-bootstrap-1.1.1/lib/formtastic-bootstrap/helpers/buttons_helper.rb:5:in `': cannot load such file -- formtastic/helpers/buttons_helper (LoadError)

What am I doing wrong here? Thank you in advance for the help!


Solution

  • According to this latest version of formtastic is not compatible with formtastic-bootstrap. Try older version gem 'formtastic', " ~> 2.1.1"