ichord / jquery-atwho-rails

At.js gem

Home Page:https://github.com/ichord/At.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

At.js gem

https://github.com/ichord/At.js

License:MIT License


Languages

Language:JavaScript 87.7%Language:Ruby 9.9%Language:CSS 2.5%