单击按钮传入button=
URL:
# example.html.haml
= form_for @contact, html: { method: :get }
= f.text_field :phone
= f.button "Call Me!"
如何防止 Rails 传递额外的 URL 参数?
单击按钮传入button=
URL:
# example.html.haml
= form_for @contact, html: { method: :get }
= f.text_field :phone
= f.button "Call Me!"
如何防止 Rails 传递额外的 URL 参数?