Can some one please describe the usage of the following characters which is used in ERB file:
<% %>
<%= %>
<% -%>
<%# %>
what's the usage of each one ?
Can some one please describe the usage of the following characters which is used in ERB file:
<% %>
<%= %>
<% -%>
<%# %>
what's the usage of each one ?
<% %>
: Executes the ruby code<%= %>
: Prints into Erb file. Or browser<% -%>
: Avoids line break after expression.<%# %>
: ERB comment