Help for 4-3

Hi there, i’m being stucked at some part of the exercise, just because i’ve never learned how to do :frowning:

The exercise ask me

“Then in the Tags controller, add the index action to display a list of all tags. To do this, fetch all tags from the database and store them in variable @tags.”

And i simply don’t know what to write to answer :confused:

Thank youuuu !!!

Hi @gzorax,

You can get all items in a specific database table like this:


In this case, Tag (singular) is your model :slight_smile:

Thank you, it worked !

I first write “tag” instead of “Tag” but then I finally found !!

1 Like

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