Closed chadwilken closed 1 year ago
@chadwilken Thank you for letting me know this. Your bug report was really helpful! I just fixed this bug on af5997e808c11ed06e56f393c2f562009e2ed57b and published jb 0.8.2 with the fix.
Thanks!
Thank you so much!
Just wanted to say that I really enjoy the library. Thank you for all of the work that you have put in!
I am attempting to render an object to JSON using your gem and Rails 7.1. I am using
Rails.cache.fetch
in the jb file and am getting the error below.A few interesting things. If I disable caching it works (that isn't feasible though). If I remove rendering additional partials it also works. This leads me to believe it has something to do with the call to
render(partial: …)
.Let me how I can help or if you need additional information.
My Views
Updates
I attempted to inline rendering the entire object (removed calls to
render(partial: …)
and it works. Something about dumping the partial seems to be what is messing it up.This works