A plugin to enable automatic height for textarea elements.
Ruby
Latest commit 9cb5d9b Mar 2, 2017 @calebthompson calebthompson Nope

README.md

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

  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