Ask A Question

Notifications

You’re not receiving notifications from this thread.

JSP rails 7 acts-as-taggable-on couldn't find a valid model

brobles asked in Gems / Libraries

With the last version of JSP ( rails 7) the compatible gem is "acts-as-taggable-on", "~> 5.0"

And after done the migration and try acts_as_taggable_on :tags and acts_as_taggable I get this errors

Rails couldn't find a valid model for ::ActsAsTaggableOn::Tagging association. Please provide the :class_name option on the association declaration. If :class_name is already provided, make sure it's an ActiveRecord::Base subclass.

Any idea how to fix this ?

Reply

looks like is a problem with the gem, is not updated yet on rubygems so have to add this

gem "acts-as-taggable-on", "~> 9.0", github: "mbleigh/acts-as-taggable-on"

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.