The difference between <% and <%= in erb

Posted . Visible to the public.

(The distinction between the two types of embedded Ruby is that <% ... %> executes the code inside, while <%= ... %> executes it and inserts the result into the template.)

Robb Schuneman
Tags
Posted by Robb Schuneman to Ruby on Rails (2014-04-10 04:28)