Skip to content

NoMethodError: undefined method `tags_from' #1151

Description

@testa19

If you add tags one by one,

  acts_as_taggable_on :tags
  acts_as_taggable_on :attributes
  acts_as_taggable_on :tags2

initialize_acts_as_taggable_on_ownership does not run right with Rails 7 (7.0.8.7, or something changed between gem versions 10 and 11).

NoMethodError: undefined method 'tags_from'

It was ok with older Rails versions (6 -> 5) or gem version 10.

Making them acts_as_taggable_on :tags, :attributes, :tags2 helps.
Or running Model.initialize_acts_as_taggable_on_ownership when playing with the feature in rails console.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions