ruby-on-railsapartment-gemruby-on-rails-6

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?


Solution

  • 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