Display all tags help!


#1

<% @tags.each do |t| %>


<%= image_tag t.image %>

<%= t.title %>


In this code , wt i understood is it goes through array of tags..and on each element of tag , it will fetch it's image and title. But why we need to give 'image_tag'in 3rd line.


#2

add @tags = Tag.all in the tags controller