I want to pass the string 'header__button'
and the response from method classify(f)
as the argument class
to link_to
.
I tried
<%= link_to f, '/dashboard', class: 'header__button' classify(f) %>
but Ruby won't allow it. How can it be done?