I've been hacking up a wiki for the display of computer artefacts in a museum-like way, with interested people being able to comment easily on items displayed in this virtual museum. In this way a corpus of knowledge may develop around the items displayed on the wiki.
Collection items in the wiki can be categorised using a categories field on each page for the collection item.
Categories exist in a simple hierarchy. In the wiki running at markvan.me I have this fragment of a category hierarchy:
Manchester Computer -isa-> Computer
In the running demo, I have one page categoriesed with 'Computer', and one categorised with 'Manchester Computer'
The page below shows things categorised 'Computer' https://markvan.me/categories/Computer
By clicking on the show subcategories button you see something categorised with a subcategory of 'Computer' https://markvan.me/categories/Computer/show_full
The categories controller, freshly refactored, is at https://github.com/markvan/social-museum/blob/refactor-bootstrap2/app/controllers/categories_controller.rb
Looking at a fragment of that controller in the next file
That should give you the
params[:id]
for both routes.