I've been following Agile Web Development with Rails, and their code suddenly switches from the use of <%= %>
to <% %>
.
Code Example 1:
<%= 1+2 %>
Code Example 2:
<% for file in @files %>
file name is: <%= file %>
<% end %>
My question is, for the second code sample why can I not use <%= %>
?
Thanks!