Ruby on Rails推送通知 [英] Ruby on Rails push notifications
本文介绍了Ruby on Rails推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何宝石,我可以用来将通知从服务器推送到Rails应用程序中的Web应用程序?
这意味着无需调用ajax请求。
:: UPDATE ::
忘记提及一个重要的要求,那就是我使用Rails 3.2
解决方案
您可以轻松地在rails中使用Faye gem来做到这一点。这里有一个很棒的railscast。
Faye
Is there any gem, anything I can use to push notifications from server to the web application in a Rails App?
This means not having to call an ajax request from time to time.
:: UPDATE :: Forgot to mention one important requirement which is that I'm using Rails 3.2
解决方案
You can easily do this with Faye gem in rails. There is a great railscast on this. Faye
这篇关于Ruby on Rails推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文