0

I use the rails function submit_button to generate a button for my form. How can I add the formnovalidate tag to this button?

The code in the view looks like

<%= f.submit_button('Draft Changes', class: 'btn btn-success') %>

Regards, SB

Pavan
  • 33,316
  • 7
  • 50
  • 76
user5381395
  • 21
  • 1
  • 4
  • 1
    My current code looks like - <%= f.submit_button('Draft Changes', class: 'btn btn-success') %> – user5381395 Sep 27 '15 at 11:17
  • Why would you want to do this on a button? Isn't this usually used for inputs? See e. g. http://stackoverflow.com/questions/7065917/add-attribute-to-rails-helper-text-field (pretty much equivalent for your case, though) – panmari Sep 27 '15 at 12:33

0 Answers0