Rescue - how to supress a nil NoMethodError

This is pretty easy, but I always seem to forget (see comment):

             <%= @post.author.name rescue "no author" -%>

Comments