Gemified by Doc Walker
Provides the enablePlaceholder
jQuery plugin packaged for the Rails 3.1+ asset pipeline.
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
whereX.Y.Z
is version ofenablePlaceholder
plugin andVV
is version of gem (with leading zero); - Refer to Semantic Versioning 2.0.0 (http://semver.org);
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- enablePlaceholder jQuery plugin
- RailsCast #245 New Gem with Bundler -- inspiration
- Gemify Assets for Rails -- guidance