Adding the index method


#1

This is the code I'm using for Exercise 4, step 3

def index
    @tags = Tags.all
  end

I'm getting an uninitialised constant errror. What am I doing wrong?


#2

Try

def index
@tags = Tag.all
end


#3

Many thanks - that works.


#4

Same problem, could someone explain why it's Tag and not Tags please

Thanks


#5

I ran into this exact same thing. The most maddening part was I'd just done this in the previous lesson, but had no way of going back to see how it's done.

Thanks for posting.