seyhunak / twitter-bootstrap-rails

Twitter Bootstrap for Rails 6.0, Rails 5 - Rails 4.x Asset Pipeline
https://github.com/seyhunak/twitter-bootstrap-rails
4.49k stars 996 forks source link

Bug error_span in template #913

Open dzmitrys-dev opened 8 years ago

dzmitrys-dev commented 8 years ago

http://stackoverflow.com/questions/26245222/undefined-method-error-span-rails-project/36120983#36120983

dzmitrys-dev commented 8 years ago

Removing all error_span occurrences in forms seems like a temp fix

zerimar commented 7 years ago

Another workaround, if you don't want to remove error_span in forms is to add two files: app/helpers/form_helper_extension.rb

module FormHelperExtension include FormErrorsHelper end

app/config/initializers/form_helper_init.rb ActionView::Helpers::FormHelper.extend FormHelperExtension