Reputation: 48490
More specifically, I need to create <button type="submit">Foo</button>
type markup in my Rails form. Is there a helper for that?
Upvotes: 2
Views: 8803
Reputation: 40277
Nope, you could obviously do in HTML, or
<%= content_tag(:button, "Foo", :type=>:submit)%>
But if you want to do the following then check out Rails Button Tag :
<%= button_tag "Foo"%>
Upvotes: 9
Reputation: 1030
<%= submit_tag "Foo" %>
Here is the documentation for rails form helpers ActionView::Helpers::FormHelper.
Upvotes: 0