I have a form generated by scaffold in my _form.html.erb
<%= form_for @survey do |f| %>
<%= f.label :name %><br />
<%= f.text_field :name %>
<%= f.submit "Send", class: "btn btn-red span3" %>
<% end %>
my submit input produces:
<input class="btn btn-red span3" name="commit" type="submit" value="Send">
I want to produce a button instead a input. Like this:
<button class="btn btn-red span3" name="commit" type="submit">Send</button>
Any tip?
I discovered a simple way
produces: