How to put partial in seperate dictionary in Jbuilder Rails?

154 Views Asked by At

I have a a json.jbuilder that has json.template render partial: "partials/#{notification.action}", locals: {notification: notification}. I want this partial to have a dictionary for it. Instead it returns "template": "{\"user_id\":\"1\"}". How can I make it show a dictionary instead of a string.

0

There are 0 best solutions below