Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Step - adding model room associations #8

tonydehnke opened this Issue Apr 12, 2019 · 1 comment


None yet
2 participants
Copy link

tonydehnke commented Apr 12, 2019

I couldn't get the messages window to load for me, kept getting an error of NoMethodError in RoomsController#show undefined method `room_messages’ for #Room:0x00007f895b47ae78

Reached out on the Ruby on Rails Link slack channel and Alfred Dominic pointed out that I was missing the association in the models.

Looked in the repo and it is there, so I think the step is missing in the tutorial to add this?


class Room < ApplicationRecord		 
  has_many :room_messages, dependent: :destroy

This comment has been minimized.

Copy link

iridakos commented Apr 12, 2019

@iridakos iridakos closed this Apr 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.