Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after removing coffee script gem #5

Closed
rpruizc opened this Issue Apr 11, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@rpruizc
Copy link

rpruizc commented Apr 11, 2019

Right after the "Cleanup Unused Components", after restarting the server, I get an error that says: "cannot load such file -- coffee_script".
I checked my steps twice and restarted as many times as well. Bundle it again. Still the same error. Any ideas on what am I doing wrong?
Thank you for the article. Just what I am looking for to learn how to use websockets in rails.

@rpruizc

This comment has been minimized.

Copy link
Author

rpruizc commented Apr 11, 2019

Looks like the problem were two *.coffee files. Since we didn't use the --skip-coffee flag at project's creation, the coffee files are generated when the Room and RoomMessage resources are. Those files need to be removed/renamed (to *.js). A cache clear must also be performed (rails tmp:cache:clear).
That's what worked for me.

@iridakos

This comment has been minimized.

Copy link
Owner

iridakos commented Apr 11, 2019

You are right @rpruizc Thank you very much for pointing it out! Post updated.

https://iridakos.com/tutorials/2019/04/04/creating-chat-application-rails-websockets.html#acknowledgments

@iridakos iridakos closed this Apr 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.