I can’t help but thing there is a better way of coding the below in a Rails layout. Any suggestions?
<% if remove_ads_from_page? %>
<div class="main-content without-ads">
<%= yield %>
</div>
<% else %>
<div class="main-content with-ads">
<%= yield %>
</div>
<% end %>
How about