LoginSignup
1
2

More than 5 years have passed since last update.

~> rails 5.1.0 で acts-as-taggable-on を利用している時に super: no superclass method `quote_value' がでる場合の対処法

Posted at

このブログはrailsで動かしているのですが、ちょっとrailsを最新にしてみようと思い立って作業をしてみたところ、
acts-as-taggable-on で super: no superclass method `quote_value' が出てしまいました。

acts-as-taggable-onのmasterブランチを参照することでこの問題は解消できます。
https://github.com/mbleigh/acts-as-taggable-on/issues/808#issuecomment-318495139

1.Gemfileを修正する

-gem 'acts-as-taggable-on', '~> 4.0'
 +gem 'acts-as-taggable-on', github: 'mbleigh/acts-as-taggable-on', branch: 'master'

2.bundle install

acts-as-taggable-onのVersion 3.5.0はmysqlのアダプターが入ったようなので、 rake acts_as_taggable_on_engine:install:migrations をしたあとに bundle exec rake db:migrate を実行してください、

Bundle complete! 78 Gemfile dependencies, 202 gems now installed.
Gems in the group production were not installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from acts-as-taggable-on:
When upgrading

Re-run the migrations generator

    rake acts_as_taggable_on_engine:install:migrations

This will create any new migrations and skip existing ones
Version 3.5.0 has a migration for mysql adapter

railsのバージョンアップにともなって修正したファイルは以下の通りです。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2