Id Id form button

0

I have a button to submit a form

<div class="actions">
     <%= f.submit, html: {class: "button"}%>
</div>

But none of the HTML attributes ( class and id ) work, they only give me an error on the page. Does anyone know how I can put an id or class of my choice?

    
asked by anonymous 16.12.2016 / 18:06

1 answer

0

So:

<%= f.submit nil, class: 'btn btn-default' %> 
    
19.12.2016 / 13:20