In my html.erb file, I have some HTML code. Within it, I included this Ruby snippet:
<li <%= puts "class='active'" %>>Link</li>
However, when I test the code on a Rails server, the class="active"
part does not appear as expected. Can anyone explain why this is happening and how I can solve it? Perhaps there is a basic concept that I am overlooking?