Emulated ruby tags (ERB) tags

Some handy information about working with those less-than-percent sign things that appear in Emulated Ruby, or .rhtml files.

example what it does
<% ... %> evaluate/execute ruby code
<%= ... %> evaluate & return to buffer (result will be included in output)
<%- ... %> strip whitespace before tag
<% ... -%> strip whitespace after tag

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous post Rails Script shortcuts
Next post Installing Rails & MySQL On Mac OS X