I would like to call a helper method from my View to construct a sidebar
menu. The menu is contextual, so ideally I would like to do something
<%= sidebar_menu %>
… build menu…
where ‘calling_view’ is the key that points to the
‘view_identifier’, if this this makes sense!
I could send a parameter with the method call (eg
sidebar_menu(‘search_screen’)), but I consider this redundant.
Is this possile? Is there a better approach?