Skip to content

Provides the `enablePlaceholder` jQuery plugin packaged for the Rails 3.1+ asset pipeline

License

Notifications You must be signed in to change notification settings

jhx/gem-enableplaceholder-jquery-rails

Repository files navigation

enableplaceholder-jquery-rails

Gem Travis Gemnasium Code Climate Coveralls

Gemified by Doc Walker

Provides the enablePlaceholder jQuery plugin packaged for the Rails 3.1+ asset pipeline.

Installation

Add these lines to your application's Gemfile:

# enablePlaceholder jquery plugin packaged for the rails asset pipeline
gem 'enableplaceholder-jquery-rails', '~> 1.2.205'

And then execute:

$ bundle

Or install it yourself as:

$ gem install enableplaceholder-jquery-rails

Gem version notes:

  • Version is in the format X.Y.ZVV where X.Y.Z is version of enablePlaceholder plugin and VV is version of gem (with leading zero);
  • Refer to Semantic Versioning 2.0.0 (http://semver.org);

Usage

Add these lines to app/assets/javascripts/application.js

// provides HTML5 placeholder behavior for old browsers
// from gem 'enableplaceholder-jquery-rails':
//= require enableplaceholder-jquery-rails

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

Acknowledgements

About

Provides the `enablePlaceholder` jQuery plugin packaged for the Rails 3.1+ asset pipeline

Resources

License

Stars

Watchers

Forks

Packages

No packages published