Attempt to make an order: to confirm the message for the rails form, which returns data from the submitted form, and not just a static string.
<% form_for @foo do |f| -%> <% f.text_field :number_of_bars -%> <% f.submit :confirm => Are you really sure you want to use
The idea is that the user enters number 3 in the column text box, a confirmation message will be displayed as follows: "Are you really sure you want to use 3 bars?"
Any ideas how to do this?
source share