Can someone explain why the following code snippet fails? I don’t understand why the link_to method is unavailable within my template.
<% current_page.data.tags.split(", ").each do |tag| %>
<%= link_to tag, tag_path(tag) %>
<% end %>
No method error
undefined method `link’ for nil:NilClass