0
在https://github.com/logankoester/pusher-client如何將設置放入config/initializers/
的導軌初始值設定項中?如何將PusherClient設置爲Rails初始化程序?
在https://github.com/logankoester/pusher-client如何將設置放入config/initializers/
的導軌初始值設定項中?如何將PusherClient設置爲Rails初始化程序?
在config/initialisers
創建一個名爲pusher.rb
文件,並添加您的推進器配置有,是這樣的:
Pusher.app_id = 'your-pusher-app-id'
Pusher.key = 'your-pusher-key'
Pusher.secret = 'your-pusher-secret'
對於創業板的完整文檔可以在這裏找到:http://rubydoc.info/github/pusher/pusher-gem/master/frames