Display inline rails button

2024-09-17 rails html
# not work as expected
button_to "foo", "#", method: :post, class: "c..", style: "s.."

# => out put will be like:
# <form class="button_to" ...>
#  <button class="c.." style="s..">
# </form>

By defining the css style like the below, the button can be aligned with other (normal) buttons.

form.button_to {
    display: inline;
}