Hi,
Currently, my application.rhtml does this:
render :partial => ‘menu’
which renders a different file based on the controller.
Not all views will have this partial so I want the render to only happen
if the template exists. Currently I get an error if the file does not
exist.
How can I check for the presence of the _menu.rhtml file before
rendering?
Something like
render_partial_if_exists :partial => ‘menu’
Thanks.