I have a multiple partials that I am rendering and would like to add a CSS class to one of them. Is there a way to do this?
Here is the page I am rendering
<%= render :partial => "/account/plan_yearly" -%>
which adds this html to the page
<div class="offer">
<!--MORE HTML-->
</div>
What I would like to do is something like this:
<%= render :partial => "/account/plan_yearly", :class => "highlight" -%>
Which would render the html below:
<div class="offer highlight">
<!--MORE HTML-->
</div>
But it doesn't work the way I want it to. Any thoughts? Much appreciated!
Thanks Everyone