Philipp Defner

Joined

210 Experience
2 Lessons Completed
0 Questions Solved

Activity

After struggling a lot with JSONB, Rails 6 and storeext (https://github.com/G5/storext) and the typedstore Gem mentioned here I finally found the following one and it works flawlessly. Maybe it's helpful for someone else: https://github.com/madeintandem/jsonb_accessor

My problem was always that the JSON in the column was escaped / stored as a string, which it shouldn't be in a JSONB column. After switching to this Gem everything worked, I'm not exactly sure where it's going wrong.

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

© 2021 GoRails, LLC. All rights reserved.