Hi Core List
The usual way to conditionally add classes to html tags is in the following form:
Inspired by this I’d like to add a helper to ActionView which does exactly that. So you can write:
<%= content_tag_for :tr, @model, class: class_list(‘foo’, ready: @model.ready?) do %>
How do you like this idea? Where should that go? New gem? The newly extracted content tag gem? Action View Helpers?