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

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs