I am using RoR to build my new personal site. My aim is to have a gallery area to show all my photo albums. I so far, have all my photos pulled from Flickr and I have all my albums showing up on my albums index page.

I have a Flickr premium account and have sorted all my albums into Collections on Flickr and pulled that data over to my app so know each albums knows it's parent collection or category. They can go up to 3 levels deep.

I now want to when a user goes to my gallery section on my site to list the top level collections, then when one of those is clicked to show it's sub collections and so on until i get a list of it's albums.

I am just unsure how to write and develop this part.

Any thoughts or ideas?