<commit_before>= Bootstrap Confirm Rails

This will overwrite rails' *$.rails.allowAction* function to use custom delete confirmation dialog with Bootstrap modal. And this also add new form helper *confirm_form_tag* for more adaptive use.

== Installation

1. add follow to your *Gemfile*

    gem 'bootstrap-confirma-rails'

2. run *bundle* to install dependences

   $ bundle

Or you can install it youself by:

  $ gem install bootstrap-confirm-rails

== Usage

In your view file:

  confirm_form_tag @model_name, 'data-confirm' => 'Are you sure?' do |f|
    f.submit 'Delete'
  end

== Copyright

Copyright (c) 2012 Spring MC. See LICENSE[https://raw.github.com/mcspring/bootstrap-confirm-rails/master/MIT-LICENSE] for details
<commit_msg>add more example for usage<commit_after>= Bootstrap Confirm Rails

This will overwrite rails' *$.rails.allowAction* function to use custom delete confirmation dialog with Bootstrap modal. And this also add new form helper *confirm_form_tag* for more adaptive use.

== Installation

1. add follow to your *Gemfile*

    gem 'bootstrap-confirma-rails'

2. run *bundle* to install dependences

    $ bundle

Or you can install it youself by:

  $ gem install bootstrap-confirm-rails

== Usage

In your view file:

  confirm_form_tag @model_name, 'data-confirm' => 'Are you sure?' do |f|
    f.submit 'Delete'
  end

With all options:

  confirm_form_tag @model_name, 'data-confirm' => 'Are you sure?', 'data-confirm-body' => 'This will destroy data from database', 'data-confirm-ok' => 'Delete', 'data-confirm-cancel' => 'Cancel' do |f|
    f.submit 'Delete'
  end

*NOTE*: You can use *data-confirm-shortcut* option to reduce input. And this will use *BootstrapConfirmRails.shortcut_template* to produce result.


== Copyright

Copyright (c) 2012 Spring MC. See LICENSE[https://raw.github.com/mcspring/bootstrap-confirm-rails/master/MIT-LICENSE] for details

{'fraction_non_alphanumeric': 0.10057925223802001, 'fraction_numerical': 0.00631911532385466, 'mean_word_length': 4.234159779614325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '853669', 'n_tokens_mistral': 602, 'n_tokens_neox': 558, 'n_words': 212}