New Discussion

Notifications

You’re not receiving notifications from this thread.

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

0
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

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.