Adding the index method


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

def index
    @tags = Tags.all

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



def index
@tags = Tag.all


Many thanks - that works.


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



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.