JavaScript Ruby CSS
Clone or download
Latest commit 8dfa867 Jan 2, 2018
Permalink
Failed to load latest commit information.
gemfiles test for rails3 Aug 16, 2014
lib bump v1.5.4 Jan 2, 2018
spec test for rails3 Aug 16, 2014
.gitignore update to v1.1.0 May 3, 2015
Appraisals test for rails3 Aug 16, 2014
Gemfile bump v1.5.4 Jan 2, 2018
LICENSE-MIT add license file Aug 10, 2013
README.md Update README.md Nov 15, 2015
Rakefile update to v1.1.0 May 3, 2015
bower.json upgrade to 1.5.2 Oct 20, 2016
changelog.md sync at c3845e5 of At.js Apr 25, 2013
jquery-atwho-rails.gemspec update to v0.2.0 Jan 24, 2013

README.md

Usage


Bind your textarea

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

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

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:

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 project.

Development


Test generator

Just issue
bundle then appraisal rails30 rspec