yarn add rails-ujs
import Rails from 'rails-ujs'
I'm having the same issue as BB and others on newer versions of rails. Cards and lists are being created, but they only display on another browser upon refresh.
From the terminal, I can see that the commit is sent to action cable, but the payload is showing up as a crazy looking string that starts off with an html doctype (which seems to be be way off from the pretty json data it should be outputting).
I feel like the issue may stem from the board_channel.js file I have, since
console.log(data) (@13:15 in the video) doesn't even get fired. If anyone figures this one out, let me know! I've been banging my head against the wall for the better part of a day.
any tips on how to deploy this kind of setup ? rails and vue should have a webpacker running alongside it ? or it is not relevant ?
I cant seem to get any data displaying on production env despite having the json in data attribute available
Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.