I have a do statement in my view and was wondering how to format the code properly to use a class like other elements?
<%= link_to something_path do %>
<div>Stuff</div>
<% end %>
I tried to do it like most ERB, adding the class to the end of the statement:
<%= link_to something_path do, class: "classname" %>
That didn't work so I tried to do it like an image_tag:
<%= link_to(something_path do, class: "classname") %>
Where does class: fit into this line of code?