I want to implement tags in my Rails application but I’m having trouble with one specific feature of that implementation. You see I want to make it possible for users to specify multiple tags in the url scheme, something like http://domain/tags/:id1/:id2/.... Has anyone implemented something like this in Rails or know how to do it?
I want to implement tags in my Rails application but I’m having trouble with
Share
You want something called “Route Globbing”:
Then in
lots_of_tagsaction you’d haveparams[:tag_ids]array of provided tag ids or a string in form ofid1/id2(not sure which one, you should test it by yourself).More info on this in rails guides: