Integration of jQuery autosize
plugin into Rails asset pipeline
Add this line to your application's Gemfile:
gem 'rails_autosize_jquery', github: 'lr-agenceweb/rails_autosize_jquery'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rails_autosize_jquery
Open your application.js.coffee file and add this lines:
#= require jquery.autosize
#= require jquery.autosize.initializer
The first line is the jQuery library.
The second is an auto initializer: just give the autosize
class to your textarea and you will be ready to go !
Bug reports and pull requests are welcome on GitHub at https://github.com/lr-agenceweb/rails_autosize_jquery.