Good
<% if condition? %>
...
<% elsif another_condition? %>
...
<% end %>
Bad
<%= if condition? %>
...
<% elsif another_condition? %>
...
<% end %>
<% if condition? %>
...
<%= elsif another_condition? %>
...
<% end %>
I think this should also apply for another other control flow, like when/case, for, while, until, unless, etc.
Good
Bad
I think this should also apply for another other control flow, like when/case, for, while, until, unless, etc.