Is there a simple way to check for the existence of a partial before
I have some code that creates a dynamic partial depending on the city a
particular object is located in. There are some cities that do NOT have
partials defined for them, but I still want the overall page to
display. Is there a way to either chefck for existence before
displaying (enclosed in an if statement?) or to tell the partial to
skip if it cannot find the file?
<%= render :partial => ‘listing/partials/additional_’ + @city %>