Displaying 1 result from an estimated 1 matches for "display_box".
2005 Oct 02
1
rendering if template exists
...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 exists?
The error I get is
ActionView::ActionViewError in Sidebar/related#display_box
No rhtml, rxml, or delegate template found for sidebar/related/ 
_products_index
<%= render :partial => "#{@current_controller}_#{@current_action}" %>
I was thinking to catch the exception but then I would have to write  
this in the view code of the component, which I don'...