RE: Re: How do I identify the initiating View from within aH


#1

Lindsay,

Wouldn’t you want to use a component for this? I know components seem
to be out of favor, but they seem like a perfect fit for this very
thing.

You could then go like:
<%= render_component :controller => ‘sidebar’, :action => ‘home_menu’ %>

The :action parameter could even be more dynamic based on your own
needs.

Maybe someone knows a better way?

Chris


#2

Chris B. wrote:

Lindsay,

Wouldn’t you want to use a component for this? I know components seem
to be out of favor, but they seem like a perfect fit for this very
thing.

Thanks for the tip, Chris. I think I need to re-read the Action View
section in Agile that covers layouts and components.

Lindsay