I am using Rails and trying to conditionally add a div height based on a query string param. There are four possible values for the v query string param: 1, 2, 3, or 4. When v=3 or v=4, I want to display the heading-row-2 class. Otherwise, I want to display the heading-row class.
I'm looking for something along the lines of these two:
<%= content_tag :div, class: "row #{'heading-row-2' ? (params[:v] == 3 || 4) : 'heading-row'}"%>
<div class="row <%='heading-row-2' ? (params[:v] == 3 || 4) : 'heading-row'%> ">
Note that I also need:
- A 'row' tag.
- To add more html inside the div.