Shrikant,
<% %> is code that is executed, but not displayed in the browser. <%= %> is code that will be executed and displayed.
Hope that helps!
Ethan Gunderson
Shrikant,
<% %> is code that is executed, but not displayed in the browser. <%= %> is code that will be executed and displayed.
Hope that helps!
Ethan Gunderson
Just an example of both usages
<% if is_admin? do %> <h1><%= admin_title %></h1> <% end %>