Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ichord/jquery-atwho-rails

At.js gem
https://github.com/ichord/jquery-atwho-rails

Last synced: 7 days ago
JSON representation

At.js gem

Awesome Lists containing this project

README

        

### 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`