Is there any way to make this work for multi-word tags?
My index page works fine with one-word tags (e.g. 'superman', 'comic', etc.), but when I have a multi-word tag (e.g. 'the riddler', 'the penguin', etc.) I get the following error:
undefined method 'joins' for []:Array.
When I try to filter my articles by the tag 'Tag 3', the URL that I am directed to is:
Great episode, as usual.
Is there any way to make this work for multi-word tags?
My index page works fine with one-word tags (e.g. 'superman', 'comic', etc.), but when I have a multi-word tag (e.g. 'the riddler', 'the penguin', etc.) I get the following error:
undefined method 'joins' for []:Array.
When I try to filter my articles by the tag 'Tag 3', the URL that I am directed to is:
http://localhost:3000/tags/Tag%203
I imagine it has something to do with this line:
Anyone know how to make this work with multi-word tags?