webim for rails
JavaScript CSS PHP Ruby HTML ApacheConf Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
bin
config
db
lib
public
test
vendor/assets
.gitignore
Gemfile
LICENSE
README.md
README.rdoc
Rakefile
TODO
config.ru
run

README.md

webim-for-rails

webim for rails

Static Files

public/static

configuration

config/webim.yml

webim:
  isopen: true
  domain: localhost
  apikey: public 
  host: nextal.im   
  port: 8000
  emot: default
  theme: base
  opacity: 80
  local: zn-CN
  enable_room: true
  enable_chatlink: false
  enable_shortcut: false
  enable_menu: false
  enable_noti: true
  admin_uid: 0
  visitor: false
  show_unavailable: false
  upload: false

config/initializers/load_webim_config.rb

WEBIM_CONFIG = YAML.load_file("#{Rails.root}/config/webim.yml")['webim'] 

Database

import db/schema.sql into database

Controller

app/controllers/webim_controller.rb

Models

app/models/webim_model.rb

Plugin

app/models/webim_plugin.rb