Joined June 2013
·
Posted to
Fix encoding issue with Ecto and Poison
over 1 year
ago
@rosscdh thanks for your comment!
I put this in the file lib/myapp/encoder.ex
file, note that I was using an Phoenix application, it does load files automatically.
If you're using it in a plain Elixir application, try to import the Poison.Encoder to your file and see if it works. Don't forget that you'll need to require this file in order to load this implementation for the encoder.
Let me know if you had success.
Achievements
140 Karma
12,925 Total ProTip Views
Honey Badger
Have at least one original Node.js-specific repo
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose
Have at least one original repo where Ruby is the dominant language
Hi @rheckart what is the version are you using at?
When I wrote this article a lot of libraries wasn't on the 1.x version yet, maybe something changed. :/