I followed along step by step - but I am not getting the 200 status response. When I check your code on github, it looks like you've added quite a bit more than what was covered in the 2 videos. Everything is just null for me when I click the button. Any direction on where to troubleshoot that?
I had to set 'this' reference externally to use it in Success callback. But you didn't do that in the video I wonder how that works for you ? Please check the below code snippet SS . https://uploads.disquscdn.c...
Hi Chris. I'm getting an error at 9:33, when I try to add a card.
```Uncaught ReferenceError: Rails is not defined at VueComponent.submitMessages (app.vue:31)```
Can you help me solving this?
const Rails = require('rails-ujs'); Rails.start();
that works up until you have more than one component. Then it'll complain rails-ujs is already loaded.
My work around is to add
import Rails from "rails-ujs"
in each script/component.
This is still problematic with Rails 6.0.0rc1
Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.