Makes elastic textarea's which grow and shrink to fit the text included in them. Includes JavaScript by Jan Jarfalk.
Requires rails >= 3.1
Add this line to your application's Gemfile:
gem 'elastic-textarea'
And then execute:
$ bundle
In your form user elastic_text_area where you would use a standard text area. Accepts all the same options as the standard text_area.
<div class="field">
<%= f.label :description %><br />
<%= f.elastic_text_area :description %>
</div>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request