acts-as-taggable-on: undefined method `caching_tag_list_on?'
Since #403 was applied, I’m getting an error rendering a tag_list because the caching_xxx_on? method_on method has not been added. This is rails 4.0.2 working against the acts-as-taggable-on master. It seems that using base.connected? doesn’t work reliably on initialization and causes errors later if these methods have not been defined.
Stacktrace is not very interesting but here it is:
Showing /Users/aaron/sites/mixxter/app/views/admin/sites/_form.html.erb where line #5 raised:
undefined method `caching_tag_list_on?' for #<Class:0x007fc65e0ea6d8>
Extracted source (around line #5):
wrapper: :bootstrap3_horizontal, defaults: {column_html: {class: "controls col-sm-9"}, label_html: {class: "col-sm-3"} },
html: {class: "form-horizontal", role: "form"} do |f| %>
<%= f.input :name %>
<%= f.input :tag_list %>
<%= f.input :description, input_html: {class: 'auto'} %>
<div class="form-group">
Trace of template inclusion: app/views/admin/sites/edit.html.erb, app/views/admin/sites/show.html.erb
Rails.root: /Users/aaron/sites/mixxter
Application Trace | Framework Trace | Full Trace
app/views/admin/sites/_form.html.erb:5:in `block in _app_views_admin_sites__form_html_erb__4128459791633110155_70244962879300'
app/views/admin/sites/_form.html.erb:1:in `_app_views_admin_sites__form_html_erb__4128459791633110155_70244962879300'
app/views/admin/sites/edit.html.erb:9:in `_app_views_admin_sites_edit_html_erb___2528484288122667039_70244963004780'
app/views/admin/sites/show.html.erb:1:in `_app_views_admin_sites_show_html_erb___3959670009797880860_70244963057000'
app/controllers/application_controller.rb:88:in `set_timezone'
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 20 (1 by maintainers)
Commits related to this issue
- [#432][#403][#433][#422] Fix checking for column cache until db connects Specifically see, https://github.com/mbleigh/acts-as-taggable-on/issues/432#issuecomment-30769459 — committed to bf4/acts-as-taggable-on by bf4 11 years ago
- Merge pull request #438 from bf4/fix_cached_tag_columns_check [#432][#403][#433][#422] Fix checking for column cache until db connects — committed to mbleigh/acts-as-taggable-on by bf4 11 years ago
- Merge pull request #806 from ProGM/fix-caching-tag-list-on-bug Fix `caching_tag_list_on?` bug (#432) — committed to mbleigh/acts-as-taggable-on by seuros 7 years ago
- [#432][#403][#433][#422] Fix checking for column cache until db connects Specifically see, https://github.com/mbleigh/acts-as-taggable-on/issues/432#issuecomment-30769459 — committed to tekniklr/acts-as-taggable-on by bf4 11 years ago
- Merge pull request #438 from bf4/fix_cached_tag_columns_check [#432][#403][#433][#422] Fix checking for column cache until db connects — committed to tekniklr/acts-as-taggable-on by bf4 11 years ago
- Merge pull request #806 from ProGM/fix-caching-tag-list-on-bug Fix `caching_tag_list_on?` bug (#432) — committed to tekniklr/acts-as-taggable-on by seuros 7 years ago
This isn’t fixed, unfortunately. I’ve come across this doing a Rails 4->5 migration and have noticed something interesting. I added some logger calls to the
ActiveRecord::Base.columns
monkey patch and found that it’s being called sporadically. I’m not 100% sure why, but this is what I see in Rails console:Article.last.tag_list
raises an exception about the missing methoda = Article.last; a.tag_list
will work.I’m not sure why this is the issue, but it’s what I am seeing, and can repeat 100% locally.