Displaying 1 result from an estimated 1 matches for "_products_index".
2005 Oct 02
1
rendering if template exists
...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.
Can anybody recomend how to test the existence of a template and
render if only it e...