= 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