mbleigh / acts-as-taggable-on

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
MIT License
4.97k stars 1.2k forks source link

No implicit conversion of nil into String error. #1100

Open muneebnawaz97 opened 1 year ago

muneebnawaz97 commented 1 year ago

When i try to update a table in this case lessons and they contain tags. The gem throws a "No implicit conversion of nil into String error."

Screenshot 2023-02-26 at 5 19 08 AM

upon investigation i found that line 285 fails in the gem fails

Screenshot 2023-02-26 at 5 25 40 AM

When i change the code to create an instance first and then save. It works

Screenshot 2023-02-26 at 5 19 18 AM

The postgres adapter gets nil at some point in the chain and this object creation fails

Screenshot 2023-02-26 at 5 18 47 AM

This is the lesson object

Screenshot 2023-02-26 at 5 19 02 AM

The gem is receiving all props. Nothing is nil. but create still throws an error

Screenshot 2023-02-26 at 5 29 18 AM

This is the same lesson object as above

Screenshot 2023-02-26 at 5 29 25 AM