app/controllers/rooms_controller.rb
# Show conversation with friend, load all messages
Show conversation with friend, load all messages
Show conversation with friend load all messages
def show
    @message = RoomMessage.new room: @conversation
    @friend = @conversation.find_friend(current_user)
    @messages = @conversation.room_messages.includes(:user)
  end
def show @message = RoomMessage . new room : @conversation @friend = @conversation . find_friend ( current_user ) @messages = @conversation . room_messages . includes ( :user ) end
Show conversation with friend, load all messages
Show conversation with friend load all messages