THIS IS OUTDATED AND UNSUPPORTED. PLEASE USE SOMETHING ELSE.
Autosize::Rails
This gem packages jquery-autosize
plugin for jQuery for the Rails 3.1+ asset pipeline.
Installation
Add this line to your application's Gemfile:
gem 'autosize-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install autosize-rails
Finally, add this to your application.js file:
//= require jquery.autosize
Usage
$(document).ready(function(){
$('textarea').autosize();
});
Contributing
- 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