0

Possible Duplicate:
Difference between -%> and %> in rails

What's the difference between %> and -%> ?

Thanks

Community
  • 1
  • 1
Oded Harth
  • 4,367
  • 9
  • 35
  • 62

2 Answers2

3

The dash removes whitespace around your ERB tag

also answered here Rails ERB <%- ... -%> vs. <% ... %>

Community
  • 1
  • 1
Rasmus
  • 556
  • 3
  • 19
1

in rails 3 - no difference in earlier versions, whether or not a carriage return was added

chrispanda
  • 3,204
  • 1
  • 21
  • 23