search for: current_act

Displaying 1 result from an estimated 1 matches for "current_act".

Did you mean: current_ace
2005 Oct 02
1
rendering if template exists
Hi folks, I have a component on my site called RelatedController. I intend to put some links and content related with the current page (controller and action). What I want to do is for the time being is render :partial "#{@current_controller}_#{@current_action}" Then in the component template root I have templates like _products_index _products_cart etc. I have decided to put this into a component because over the time I''ll be integrating more logic into the component but for now all I want is to render a template if it exists....