berkelep: if i have controller/action/tag_id0/tag_id1 as my url is there a way to have it displayed as controller/action/tag_name0/tag_name1 but to still use the tag ids for the request?
berkelep: the reason i need to have ids in the url instead of tag name is because some of the tags have the same name, different parent tags
ariejan: berkelep: override to_param and make it like "id-name"
ariejan: "#{id}-#{name}". When calling to_i on it, it will convert to a valid interger ;-)
rsl: berkelep: check out acts_as_url in my stringex plugin as well and you don't need that silly "id-" part.
berkelep: ariejan, rsl: thanks.
rsl: and smarter conversion of strings as well.
dblack: rsl: how would acts_as_url handle two tags with the same name?
rsl: dblack: it adds -1 to the second.
etc etc. like technoweenie's does.
etc etc == -1, -2, -3 etc
dblack: rsl: so the 'silly' -1 thing instead of the 'silly' id- thing
rsl: dblack: is there a point?
or just trying to put me in my place?
dblack: rsl: neither
rsl</span>: just wistful
rsl: dblack: i don't see "foo" and "foo-1" [as differentiating permalinks] nearly as "silly" as id-name which really just masks find_by_id anyhow.
rsl: the real gain of acts_as_url is not using iconv for transliteration.