faye-rails icon indicating copy to clipboard operation
faye-rails copied to clipboard

faye rails duplicate messages after definining the faye.js

Open matzavinosg opened this issue 10 years ago • 1 comments

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.

matzavinosg avatar Jan 08 '15 14:01 matzavinosg

Sounds like turbolinks problem.

toomus avatar Apr 28 '15 11:04 toomus