I’m rewriting the code to my first app. I want to reuse a lot of it,
but tidy it up a lot. The first thing I will tackle is my nav-bar.
Throughout a user’s experience on my app, I want it to reload as little
as possible (I’ll have about 7 or 8 controllers with about 70 actions).
So, I’ve thought of a few ways of doing it, and was wondering if you
guys have any others!
Make a controller for it, and have every other controller’s actions
inserted (will this cause problems? will i be forced to use render
components? i’ve heard they’re evil)
Make it’s whole layout be a helper method in application_helper.rb,
and the views can call it when they need it.
Put it in my application.rhtml layout.
What do you guys think?