In my config/routes.rb
file, I created a nested resource as follows:
resources :tags, only: [] do
resources :blogs, only: [:index]
end
The problem is, if I create a tag named node.js
, when I access the page by:
http://0.0.0.0:3000/tags/node.js/blogs
I get a routing error:
No route matches [GET] "/tags/node.js/blogs"
How do I get routing to work properly for resources with a dot in the name?