title: Display confirm dialog box on button click using rails 4?
body: <p>I'm working on a rails 4.x project and I would like display a confirm dialog box when a user clicks a button in the project.  I created a sign up form, and have a sign up button but when I have the following code,</p>
  
  <p><code>&lt;%= f.submit "Sign Upp", class: 'btn btn-xlarge btn-custom', confirm: "test", method: :create  %&gt;</code></p>
  
  <p>the confirm dialog box never appears.  I am certain that I have a method named <code>create</code> in the controller, but I can't seem to figure this out.  If it makes a difference, (not sure if it does, I'm using the twitter bootstrap gem in the project.)</p>