Tony
Tony

Reputation: 1011

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

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 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.

Upvotes: 0

Views: 904

Answers (1)

Devin M
Devin M

Reputation: 9752

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.

Upvotes: 2

Related Questions