ruby on rails //动作索聊天教程错误

ruby on rails // action cable chat tutorial error

我遵循了 https://www.sitepoint.com/rails-and-actioncable-adding-advanced-features 教程,但它说:

NameError in PersonalMessagesController#create uninitialized constant PersonalMessage::NotificationBroadcastJob

after_create_commit do
    conversation.touch
    NotificationBroadcastJob.perform_later(self)
  end
end

我提交的时候出现了上面的错误,但是当我返回的时候,我得到了一个消息。

所以我删除了代码:

after_create_commit do
    conversation.touch
    NotificationBroadcastJob.perform_later(self)
  end
end

并尝试 运行 它。我没有看到同样的错误,但是这次我无法实时聊天。

我忠实地遵循了教程。我不知道为什么会出现两个问题。我需要帮助。

我的 github : https://github.com/sangyeol-kim/Whosebug_ask_ac2

尝试修复文件名 notifications_broadcast_job.rb -> notification_broadcast_job.rb