I wish to construct the following in haml:
<div class="cell", id="cell11">
more stuff..
</div>
where cell11 above is actually a ruby snippet of the form
<%= cell.html_id %> (as coded in erb)
I cannot seem to construct a haml line that works in this case. The best I can get is a div with a class, followed by a div with an id…
If the ID is dynamic, just set the the id attribute like this:
Otherwise, you can just string the id and class(es) together as in:
which would yield