TiSer TiSer - 26 days ago 9
Ruby Question

Rails 5: record_tag_helper continues to give an error

In my project with

content_tag_for
I had an error:


The
content_tag_for
method has been removed from Rails. To continue
using it, add the
record_tag_helper
gem to your Gemfile: gem
'record_tag_helper', '~> 1.0'


So, I added this gem to my Gemfile.
$ bundle install
returns:


Using record_tag_helper 1.0.0


I have restarted server, cleared Rails cache and so on, but I still have the same error, that content_tag_for method has been removed from Rails. I just have no more ideas why it doesn't work.

Share your ideas, please.

Answer Source

I have added "require 'record_tag_helper'" to my application.rb file and now it works.