Bug in implemented tagging system

馋奶兔 提交于 2019-12-02 09:24:39

If I understood correctly, when you click the particular tag in the list you supposed to be redirected to the page "Filtered Micropost Page" that contains all posts that include clicked tag.

From your view, microposts/index.html.erb you're sending user to tag_path so that's where all logic starts.

Based on ternary operator you hav on MicroPostController#index that means your params[:tag] is nil and you're listing all posts.

Could you please Stdout params.inspect

Cheers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!