Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

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

Open
matzavinosg opened this issue Jan 8, 2015 · 1 comment
Open

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

matzavinosg opened this issue Jan 8, 2015 · 1 comment

Comments

@matzavinosg
Copy link

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
Copy link

toomus commented Apr 28, 2015

Sounds like turbolinks problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants