Recommendation To Use Local_assigns.has_key?

You can check loal definition using defined? and local_assigns.has_key? local_assigns.has_key? is more simple than defined?. You can write one line. <% if...