Keep getting NoMethod error in sentry for a scope but don't see it in console

后端 未结 0 1370
清歌不尽
清歌不尽 2021-02-02 00:41

I keep getting NoMethodError undefined method \'id\' for nil:NilClass

class Shop < ApplicationRecord
  belongs_to :region


  scope :in_region, la         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题