Displaying 1 result from an estimated 1 matches for "by_category".
2006 Mar 13
5
Displaying related entries by tags - HELP!
...ased on the tags belonging to
that specific entry.
Here''s my coding so far:
#view
<% for post in @posts %>
<h2><%= post.title %></h2>
tags: <%= post.tags.collect { |tag| link_to tag.name, :controller =>
"articles", :action => "by_category", :category => tag.name.to_s
}.join(", ") %>
<p><%= post.entry %></p>
<% end %>
#layout
<% for related in @contents_related %>
<li><%= related.title %><br /></li>
<% end %>
#controller (how do I pass th...