Ruby on Rails Discussions
render partial only if it exists
rubyonrails-talk
Bob_Showalter
(Bob Showalter)
October 1, 2007, 10:56am
#1
It might be easier to just catch the error:
<%= render :partial => 'menu' rescue nil %>