jimsynz / faye-rails

Simple Rails glue for the Faye messaging protocol.
MIT License
435 stars 79 forks source link

faye rails duplicate messages after definining the faye.js #64

Open matzavinosg opened 9 years ago

matzavinosg commented 9 years ago

I have followed the faye railscast and I have a working chat app. My problem is that chrome gives a 404 error, javascripts/defaults.js not found. I found that the problem was in my application layout:

<%= javascript_include_tag :defaults, "http://myip/faye/faye.js" %> I changed that with:

<%= javascript_include_tag "application", "http://myip/faye/faye.js" %>

and the error disappeared but when I am sending through my form the message it creates and broadcasts a duplicate record of the message.

If more information needed plz ask, I am not sure which part of my code to include in the question.

toomus commented 9 years ago

Sounds like turbolinks problem.