add missing "if" to show.html.erb code sample