ruby on rails - Acts_as_taggable_on link_to -


i installed acts taggable on plugin 'post' model, i'm unable call list of posts tagged tag.

here's have in show.

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

except when click on it, shows posts. want show posts tagged keyword...what doing wrong here?

thanks help

modify controller code reads like:

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

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -