How can we use tags so that when a user clicks on a tag, he takes it to a new page That lists all those posts with that tag (in other words, not just one resource but all resources included)?
I played alongside creating a tag sluffle, which creates a tag index, but I started getting an error after this and so I'm not sure that this is the best route;) < / P>
routes.rb
find 'tag /: tag', to: 'tags # index Resources: resources of habits: target resource: valuation resources: standard resources: results
< / Pre>
If this is the only way to solve this problem through a tag_controller you can give me some advice that what I do to make it work Can i Or should I work with an application controller and should be partially used as I did with creating a sidebar?
I followed this episode to start:
Time!
No comments:
Post a Comment