Ruby - Array of hashes - Nested HTML menu from hash values without writing duplicates
问题 I have a relatively large hash where the values for all keys within are array of hashes (see below for sample layout). I have spent the last 4.5 hours attempting to write out HTML for my Rails application and I am seriously about to cry as I've gone round in circles with nothing really to show for it! Any help is greatly appreciated and thank you in advance for your time! Specific Problems Encountered Chapters/verses appear for books that they do not align to. I'm also not able to de