Philipp Defner


210 Experience
2 Lessons Completed
0 Questions Solved


After struggling a lot with JSONB, Rails 6 and storeext ( and the typedstore Gem mentioned here I finally found the following one and it works flawlessly. Maybe it's helpful for someone else:

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.