« CLA-OIT Rails Plugins | Main | Rails Testing Notes »

Tidy erb views

To make your html markup look pretty and be indented correctly within erb templates:
- Don't indent <% %> tags...(indent the code within those tags if you need to to):
- In other words--all <% -%> tags should start at the first column of the text file
- Its okay to indent <%= %> tags because they actually produce markup--they should render at the correct point.