views:

114

answers:

1

I installed the Acts as taggable on plugin to my 'Post' model, however I'm unable to call up a list of posts tagged with certain tag.

Here's what I have in show.

<%= link_to tag.name, posts_path(:view =>'tag', :tag => tag.name) %><% end %>

Except when I click on it, it shows all posts. I want it to show just the posts tagged with that keyword...what am I doing wrong here?

Thanks for your help

A: 

Modify your controller code so that it reads something like:

@posts = Post.tagged_with(params[:tag], :on => 'tags')
Jimmy Baker