Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
ghost opened this Issue · 2 comments

2 participants

@ghost

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.

@nashby
Collaborator

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

@kwerle

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