Can button_to generate <button> tag instead of <input type="submit" />?

Viewed 8506

Rather than

<input type="submit" />

I want to output

<button>

using the button_to method (rails 3.0.0)

Is this possible?

6 Answers

In Rails 7, the button_to view helper will render a <button> element, regardless of whether or not the content is passed as the first argument or as a block.

Related