So my button_to erb tag gives me something similar, which is below, and I was wondering if I could add id to the div by passing something in the option hashes instead of using js or adding html manually:
<div> <input id="button" type="submit" value="title"> <input name="auth_token"> </div>
My erb code is just
<%= button_to title, {}, :id => "button"%>
source share