Say I have a things resource with a view helper method such as:
module ThingsHelper
def foo
ret = ""
3.times { ret += content_tag(:li, "foo") }
content_tag(:ul, ret)
end
end
This, then, is used in a template:
%p
= foo
The HTML source that's generated looks like this:
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
</head>
</html>
<body>
<p>
<ul><li>foo</li><li>foo</li><li>foo</li></ul>
</p>
</body>
As you can see, the helper output is not indented as the rest of the code. Any way to remedy this?