Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `[]=' for nil:NilClass in rails 6.1 application. #1020

Closed
ghost opened this issue Jan 1, 2021 · 0 comments
Closed

undefined method `[]=' for nil:NilClass in rails 6.1 application. #1020

ghost opened this issue Jan 1, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 1, 2021

Bug occurs using acts-as-taggable-on ver. 6.0 in rails6.1 application when creating the data which has an association(s) with tag(s). ( the bug is undefined method []=' for nil:NilClass` ).

I investigated the reason why the bug occurred. I set up a simple hypothesis, which are related with a version of acts-as-taggable-on, solve this problem.

As a result, to the bug fix, change the Gemfile as follows;

gem 'acts-as-taggable-on', '~> 7.0'

Although the bug can be fixed, in the README, this gem recommends ver 6.0 without User's rails application version.

So, I think the gem file description also modified correctly like this.

gem 'acts-as-taggable-on', '~> 6.0'

If you use rails 6.1 application, you should change the version as follows;

 gem 'acts-as-taggable-on', '~> 7.0'

Please consider my proposal.

@seuros seuros closed this as completed in 509a3e6 Jan 1, 2021
rolandoalvarado pushed a commit to rolandoalvarado/acts-as-taggable-on that referenced this issue Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants