RailsCasts Pro episodes are now free!

Learn more or hide this

wag0325's Profile

GitHub User: wag0325

Comments by

Avatar

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"