Corinn Pope

Joined

4,020 Experience
40 Lessons Completed
0 Questions Solved

Activity

Posted in Vue.js Trello Clone in Rails - Part 8 Discussion

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.

Posted in Rails credentials returning nil

I know this comment is quite a bit late, but I just ran into this same issue but on the Stripe course when adding my stripe keys to the credentials doc.

I kept getting the same error 'NoMethodError (undefined method []' for nil:NilClass)' even though in the rails console Rails.application.credentials.stripe[:public_key] seemed to be working swimmingly.

What worked for me was actually regenerating my master key & credentials file. Once I popped the credentials in there and restarted the server, it seemed to work.

¯_(ツ)_/¯

Possibly helpful links:
https://blog.bigbinary.com/2019/07/03/rails-6-adds-support-for-multi-environment-credentials.html
https://gist.github.com/db0sch/19c321cbc727917bc0e12849a7565af9

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.