Lesson 3 step 3

Weird one, I’m pretty much just following instruction here but it keeps giving me an error.

def index
@messages = Message.all
end

you need @messages = Message.all

Not Messages but Message

Opps … You forgot to put ‘end’ (end of class)
CODE:
class MessagesController < ApplicationController
def index
@messages = Message.all
end
end

1 Like

A post was split to a new topic: It Looks Alright to me But Still Cannot Get Through | Exercise 3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.