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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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