File: README.md

package info (click to toggle)
ruby-jquery-atwho-rails 1.5.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 160 kB
  • sloc: ruby: 84; sh: 12; makefile: 5
file content (49 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
### Usage
---
Bind your textarea

```javascript
$(function(){
    data = ['tom','john'];
    $('textarea').atwho({at:"@", 'data':data});
});
```

that's it, check it out!
more details in [At.js Home Page](http://ichord.github.com/At.js/)

### Installation
---
#### Rails 3.0.x
Issue command line bellow:  
`rails generate atwho:install`  
then It will show in `public/[javascript|stylesheets]/` directory.

#### Rails >= 3.1.x
Add this gem in `Gemfile` like this:

```ruby
gem 'jquery-atwho-rails'
```

add in `app/assets/javascripts/application.js`:

```
//= require jquery
//= require jquery.atwho
```

and in `app/assets/stylesheets/applications.css`:

``` 
//=require jquery.atwho
```

#### History Versions 
All in [At.js](https://github.com/ichord/At.js) project.

### Development
---
#### Test generator
Just issue  
`bundle` then `appraisal rails30 rspec`