This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. plugin | |
# Download the ruby SDK code, and copy to the plugin directory. | |
${RAILS_ROOT}/vendor/plugins/opentok | |
# You may need to create an "init.rb" file in the opentok plugin directory, | |
# and insert the following line. | |
require 'opentok' | |
# 2. database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#- add gem avatar in Gemfile | |
gem 'avatar', :git => '[email protected]:yunjian/avatar.git' | |
#- add sized gravatar source in | |
# {RAILS_ROOT}/lib/sized_gravatar_source.rb | |
require 'avatar/source/gravatar_source' |