Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ichord/jquery-atwho-rails
- Owner: ichord
- License: mit
- Created: 2012-02-08T05:15:52.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T02:34:39.000Z (about 7 years ago)
- Last Synced: 2025-01-10T16:12:11.933Z (14 days ago)
- Language: JavaScript
- Homepage: https://github.com/ichord/At.js
- Size: 155 KB
- Stars: 196
- Watchers: 6
- Forks: 36
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE-MIT
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`