No commit activity in last 3 years
No release in over 3 years
jQuery-Nice-File-Input asset bundle for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

jquery_nice_file_input_rails

jQuery-Nice-File-Input asset bundle for Rails >= 3.2.x

Features

  • Rails 3.2.x/4.0.x support
  • Clean and predictable update process (see scripts/update_jquery_nice_file_input.sh)

Installation

Add this line to your application's Gemfile:

gem 'jquery_nice_file_input_rails', '~> x.x.x' # where x.x.x latest gem version

Usage

Integration to Rails Asset Pipeline

Add single line to 'application.css':

/*
 * require jquery.nice-file-input
 */

Then add single line to 'application.js':

//= require jquery.nice-file-input

That's all. Now you can use jQuery-Nice-File-Input inside your application.

If you want to use minified JS & CSS versions of jQuery-Nice-File-Input then just replace jquery.nice-file-input to jquery.nice-file-input.min in code snippets provided above.

In-place integration

If you want to use jQuery-Nice-File-Input in specified views only you can include its use the following commands:

<%= stylesheet_link_tag 'jquery.nice-file-input' %>
<%= javascript_include_tag 'jquery.nice-file-input' %>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request