bootstrap_form error undefined method
I was getting the same error. Fixed it by replacing
gem 'bootstrap-form'
by
gem 'bootstrap_form'
in my gemfile
I too was getting this error until I realized that I didn't restart the rails server. When I restarted the server, the error disappeared.