All threads / Rails form post creates a 'Do you want to download “<form target>”' prompt on mobile
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

Join the discussion

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

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

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

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.