开发者

How do I set up a functional chat box layout with ruby on rails after I have gotten juggernaut to work?

开发者 https://www.devze.com 2023-03-29 16:39 出处:网络
I just finished implementing juggernaut.I ran both the redis server and juggernaut and they work fine.I have tested out the local host using irb and texts do appear.

I just finished implementing juggernaut. I ran both the redis server and juggernaut and they work fine. I have tested out the local host using irb and texts do appear.

I've basically followed the steps on github: https://github.com/maccman/juggernaut

But now I would like to build the view with ruby on rails and actually be able to use/test the chat room like an actual 开发者_StackOverflow中文版chat room on any given website instead of writing messages through irb.

Should I use scaffolding to build the layout/view? Thanks!

I wish I could post up my screenshots but I don't have a high enough reputation.


Railscast #260 deals with a similar topic however Ryan chose to use Faye as the messaging server. However it should be easy for you to adapt to the example chat application he builds.

There is a link to the project source on GitHub here and a text version of the screencast here.

Scaffolding may be useful to you here however it may be difficult to stick strictly to the REST conventions, I would attempt to use Rails for the creation of messages and then use Juggernaut to update the messages client side after creation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号