You want <%= f.submit :confirm => 'Your confirm message' %>
. Just FYI, this is just the short hand for the javascript call.
Edit:
As stated in other answers, the new way to have a popup confirm is:
<%= f.submit 'Save', data: { confirm: 'Your confirm message' } %>
Related Contents:
- `require’: no such file to load — mkmf (LoadError)
- Rails DB Migration – How To Drop a Table?
- What does “WARN Could not determine content-length of response body.” mean and how to I get rid of it?
- Case-insensitive search in Rails model
- Ruby: Is there an opposite of include? for Ruby Arrays?
- Nokogiri installation fails -libxml2 is missing
- How to check a checkbox in capybara?
- Rails: How to change the text on the submit button in a Rails Form
- erb, haml or slim: which one do you suggest? And why? [closed]
- Rspec doesn’t see my model Class. uninitialized constant error
- How to check if a number is included in a range (in one statement)?
- How to run rails s -p80 on 80 port?
- Rspec 3 how to test flash messages
- Check if not nil and not empty in Rails shortcut?
- before_filter with parameters
- How does Rails ActiveRecord chain “where” clauses without multiple queries?
- Parsing string to add to URL-encoded URL
- rails server bin/rails:6: warning: already initialized constant APP_PATH error
- Alias for column names in Rails
- Send email from rails console
- How to stop a Daemon Server in Rails?
- Failed to build gem native extension — Rails install
- ActiveRecord OR query Hash notation
- How to “soft delete” user with Devise
- redirect_to using POST in rails
- Where can I find options for “rails new” command?
- How to fix Rails’s warning messages with Ruby 2.7.0
- “bin/rails: No such file or directory” w/ Ruby 2 & Rails 4 on Heroku
- How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”
- What does #self.included(base) do in Ruby on Rails’ Restful Authentication?
- God vs. Monit for process monitoring [closed]
- Rails4: How to permit a hash with dynamic keys in params?
- rails, simple_form, how to set selected index of a collection when page loaded?
- How to do case-insensitive order in Rails with postgresql
- How to run sidekiq in production server?
- Rake aborted! no such file to load –bundler/setup Rails 3.1
- An error occurred while installing mysql2 (0.4.8), and Bundler cannot continue
- Searching serialized data, using active record
- Validation for non-negative integers and decimal values
- Rails installation failed on Ubuntu with “cannot load such file — mkmf”
- has_many :through with class_name and foreign_key
- How do i specify and validate an enum in rails?
- Ruby on Rails i18n – Want To Translate Custom Messages in Models
- How do you skip failed migrations? (rake db:migrate)
- Naming Boolean columns in Rails
- How can I pass multiple attributes to find_or_create_by in Rails 3?
- Rails : render and exit immediately
- Devise API authentication [closed]
- f.error_messages in Rails 3.0
- Rails 4 pgsql add_index with type GIN or GiST