Here are the ERB ruby tags used in templates:
<% and %> Executes the ruby code within the brackets.
<%= and %> Prints something into erb file.
<% and -%> Avoids line break after expression.
<%# and %> Comments out code within brackets; not sent to client (as opposed to HTML comments).