Socket
Book a DemoInstallSign in
Socket

chatter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatter

0.0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

= TeamPage

This project rocks and uses MIT-LICENSE.

A simple Rails 3 engine gem that adds a chat functionality to any Rails 3 application. Send chat messages to online users within your application like any gmail/facebook chat. It assumes that you are using devise gem and user model as devise model for login.

Steps:

  • Use rails g devise:install

  • Use rake db:create

  • Use rails g devise user

  • Use rails g chatter:install

  • Use rake db:migrate

  • Add following to your application controller: def after_sign_out_path_for(resource) @user = User.find(:first, :conditions => ["email= '#{current_user.email}'"]) @user.update_attribute(:status, "offline") return root_url end

  • Edit devise.rb file according to your need.

  • Run rails s

  • Login with one user and the other

  • Hit url: http://localhost:3000/chats/samplea

10)Start chat

FAQs

Package last updated on 08 Aug 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.