Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


:confirm => "This feature is missing?" #668

ghost opened this Issue · 2 comments

2 participants

Vasiliy Ermolovich Kurt Werle
Deleted user

There are some buttons/inputs that I want to discourage but not forbid. In rails this was easy - just add a :confirm => "These are the bad things that could happen if you do this. You sure?"

There doesn't seem to be (as easy) a way to do that with simple_form. If not, please add it.

Vasiliy Ermolovich

@zepsolar could you show your code? what version of SimpleForm are you using? This code works for me:

<%= simple_form_for(@user) do |f| %>
  <%= f.button :submit, :confirm => '123' %>
<% end %>

And please, use mailing list for questions next time.

Kurt Werle

2 things:
1. I posted that from the corporate account by accident
2. I'm making things up - I was thinking that :confirm also existed for things like checkboxes in rails. It doesn't.

Toss this one out with the bathwater! Sorry 'bout that.

Vasiliy Ermolovich nashby closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.