Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails form post creates a 'Do you want to download “<form target>”' prompt on mobile

TensAndTwenties asked in Rails

Hey everyone,

I'm just testing my first Rails app on mobile and whenever I submit a form I get a prompt to download the form target. See the screenshot below:

Download Prompt on iPhone8

Here is my form tag for the form Im working with:

<%= form_with(url: "/stock/createOrderBuy",remote: true, method: "post", id: "buyForm", html: { class: "needs-validation", novalidate: true }) do %>

This form submits to a post to a controller, it's not receiving anything back as a response. Any guidance for how to get rid of this odd message would be much appreciated! Using rails 5.1.7 with Safari on iphone8

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.