<commit_before>= Remotipart

Remotipart is a Ruby on Rails gem enabling AJAX file uploads with jQuery in Rails 3.0 and Rails 3.1 remote forms.
This gem augments the native Rails jQuery remote form functionality enabling asynchronous file uploads with little to no modification to your application.

* {Homepage and Demos}[http://www.alfajango.com/blog/remotipart-rails-gem/]
* {How AJAX File Uploads Work}[http://www.alfajango.com/blog/ajax-file-uploads-with-the-iframe-method/]

== Dependencies

* {Rails 3}[http://github.com/rails/rails]
* {The jquery-rails gem}[http://rubygems.org/gems/jquery-rails], which really just installs {jQuery}[http://jquery.com] and the {Rails jQuery driver (jquery-ujs)}[https://github.com/rails/jquery-ujs]

== Installation

<b>Your app should be using jquery-rails gem v2.3.0 or above.</b>

If you're using an old version of the jquery-rails gem,
make sure you have a supported jquery-ujs (rails.js or jquery_ujs.js) version from {VERSION_COMPATIBILITY}[https://github.com/JangoSteve/remotipart/blob/master/VERSION_COMPATIBILITY.rdoc].

[1.]
  Install the Remotipart gem

  * Add this line to your GEMFILE (use the appropriate version from the compatibilty chart if needed)

   gem 'remotipart', '~> 1.1'

  * And run

   bundle install

=== Rails 3.1

[2.]
  The necessary js files will automatically be added to the asset pipeline, so add the following to app/assets/javascripts/application.js (right after <tt>//= require jquery_ujs</tt>):

   //= require jquery.remotipart<commit_msg>Updated version in readme.<commit_after>= Remotipart

Remotipart is a Ruby on Rails gem enabling AJAX file uploads with jQuery in Rails 3.0 and Rails 3.1 remote forms.
This gem augments the native Rails jQuery remote form functionality enabling asynchronous file uploads with little to no modification to your application.

* {Homepage and Demos}[http://www.alfajango.com/blog/remotipart-rails-gem/]
* {How AJAX File Uploads Work}[http://www.alfajango.com/blog/ajax-file-uploads-with-the-iframe-method/]

== Dependencies

* {Rails 3}[http://github.com/rails/rails]
* {The jquery-rails gem}[http://rubygems.org/gems/jquery-rails], which really just installs {jQuery}[http://jquery.com] and the {Rails jQuery driver (jquery-ujs)}[https://github.com/rails/jquery-ujs]

== Installation

<b>Your app should be using jquery-rails gem v2.3.0 or above.</b>

If you're using an old version of the jquery-rails gem,
make sure you have a supported jquery-ujs (rails.js or jquery_ujs.js) version from {VERSION_COMPATIBILITY}[https://github.com/JangoSteve/remotipart/blob/master/VERSION_COMPATIBILITY.rdoc].

[1.]
  Install the Remotipart gem

  * Add this line to your GEMFILE (use the appropriate version from the compatibilty chart if needed)

   gem 'remotipart', '~> 1.2'

  * And run

   bundle install

=== Rails 3.1

[2.]
  The necessary js files will automatically be added to the asset pipeline, so add the following to app/assets/javascripts/application.js (right after <tt>//= require jquery_ujs</tt>):

   //= require jquery.remotipart
{'fraction_non_alphanumeric': 0.10958456002616945, 'fraction_numerical': 0.009159306509649984, 'mean_word_length': 4.355516637478108, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '6144379', 'n_tokens_mistral': 1015, 'n_tokens_neox': 928, 'n_words': 322}