Please read for an updated status on RailsCasts:
Learn more or hide this
Could you post the CSS for the menus? Or add to show notes?
It's in the GitHub repo:
Is this true? Is there a way to cache a fragment in the context of the currently viewing page?
Or you can use pure CSS to highlight current page based on nested classes.
E.g, body.products > nav.item
Highlight nav.item.products when the body is also products.
I would also recommend the mongoid-ancestry gem for Mongoid based Rails apps.
I thought simple_format might be new... then I found that it was added 8 years ago :P
Thanks for this episode.
Is there a technical reason for chosing the "Ancestry" gem rather than the "Awesome nested set" gem ? The second one seems to be more popular for few months no ?
I'm afraid that, if I start building my app with Ancestry, it could be deprecated in few weeks. :/
Yes, you could do something like this:
<li>Root Item 1</li>
<li>Root Item 2</li>
Root Item 3 With Children
<li>Child Item 1</li>
<li>Child Item 2</li>
And then open the submenu with, let's say jQuery:
Thank you very much John! that really works.
I'm having difficulty finding out how to go about ordering the sub-tree navigation alphabetically?
I see, it's all in the arrange!
I had a very similar problem. Thank you for posting a solution, this does not happen often on the internet :)
The source code for this episode has been updated to Rails 4.2.6. You can download it from cms4
First sign in through GitHub to post a comment.