erb is Ruby's templating system.  <% foo %> to execute statements, <%= bar
%> to evaluate and print values, that's the extent of what I know.
http://ruby-doc.org/stdlib-1.9.3/libdoc/erb/rdoc/ERB.html