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

ghost opened this Issue Oct 3, 2012 · 2 comments

2 participants


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.


@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.


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.

@nashby nashby closed this Oct 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment