faye-rails
faye-rails copied to clipboard
faye rails duplicate messages after definining the faye.js
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.
Sounds like turbolinks problem.