Skip to content
Newer
Older
100644 45 lines (26 sloc) 946 Bytes
135d72b @daqing Initial commit
authored Oct 14, 2012
1 # Jquery-Elastic-Rails
2
3 A gem to automate using jQuery Elastic plugin with Rails 3.
4
5 See (http://www.unwrongest.com/projects/elastic) for more info.
6
7 ## Installation
8
9 Add this line to your application's Gemfile:
10
11 gem 'jquery-elastic-rails'
12
13 And then execute:
14
15 $ bundle
16
17 Or install it yourself as:
18
19 $ gem install jquery-elastic-rails
20
21 ## Usage
22
efcdcb3 @daqing Add usage
authored Oct 14, 2012
23 1) Add `jquery_elastic` to your Application.js:
24
25 //= require 'jquery'
26 //= require 'jquery_ujs'
27 ...
28 //= require 'jquery_elastic'
29
30 2) Add the following script to your javascript code:
31
32 $("textarea").elastic()
33
34 This will make all Textareas to be elastic(autogrow).
35
36 See detailed doc here: http://www.unwrongest.com/projects/elastic
135d72b @daqing Initial commit
authored Oct 14, 2012
37
38 ## Contributing
39
40 1. Fork it
41 2. Create your feature branch (`git checkout -b my-new-feature`)
42 3. Commit your changes (`git commit -am 'Added some feature'`)
43 4. Push to the branch (`git push origin my-new-feature`)
44 5. Create new Pull Request
Something went wrong with that request. Please try again.