Skip to content

dotcom900825/jquery-atwho-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice

updated to v0.2.0.
The stable and old one would live in branch stable-v0.1.x branch taged v0.1.7
More details in At.js project.

Usage


bind your textarea

data = ['tom','john'];
$('textarea').atWho("@",{'data':data});

that's it, check it out! more details in At.js Home Page

Installtion


Rails 3.0.x

issue commnd 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:
gem jquery-atwho-rails

then add
//= require jquery.atwho
to app/assets/javascripts/application.js
and app/assets/stylesheets/applications.css

development


Test generator

just issue
bundle then rspec