Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NameError wrong constant name primary — yet `primary` doesn't exist?

I am getting an error that randomly pops up whenever I make changes. If I refresh the page after getting the error, it goes away. The error:

NameError wrong constant name primary

I have searched my entire application and I do not have any methods or constants using the word primary. Why is my Rails application trying to call something that doesn't exist?

like image 406
ianrandmckenzie Avatar asked Jan 20 '26 18:01

ianrandmckenzie


1 Answers

Okay, so it looks like this will be fixed in the next release. The fix was referenced here: https://github.com/rails/rails/issues/36757

So, wait a week or two, update Rails and this will be resolved.

Edit: As a workaround, I reverted from 6.0.0.rc2 to 6.0.0.rc1

like image 56
ianrandmckenzie Avatar answered Jan 22 '26 17:01

ianrandmckenzie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!