How can I list specific tags in route file? I want to create a link and filter specific tags. I want to be able to link the path to specific filtered tags for my posts using link_to. e.g. <%= link_to "Blog", posts_path %>
ruby
puts "
get 'tags/:tag', to: 'posts#index', as: :tag"
How can I list specific tags in route file? I want to create a link and filter specific tags. I want to be able to link the path to specific filtered tags for my posts using link_to. e.g. <%= link_to "Blog", posts_path %>
puts " get 'tags/:tag', to: 'posts#index', as: :tag"