jbuilder
jbuilder copied to clipboard
Jbuilder: generate JSON objects with a Builder-style DSL
Implementation of the serialization-deserialization-overhead-eliminating strategy outlined in #289. Please see that issue for an outline and general details of the strategy.
This works for hashes and arrays using the already existing `Jbuilder#_merge_values` method. The only syntax not merging now is when you change the value in the same block: ``` ruby...
In my case, the objects rendered are child of Simpledelegator Class I get this error as soon I add cached: true to my json.jbuilder view: `ActionView::Template::Error (undefined method `nhut' for...
Hello! We are currently working on upgrading an existing application to Rails 6, and as a part of that process, are looking to take advantage of recyclable cache keys (introduced...
There are still cases where the error message: `ActionView::Template::Error (no implicit conversion of String into Integer)` is extremely obtuse. I'm opening this issue so that others when they see this...
Hi, I create some issue for here. https://github.com/rails/rails/issues/26525 But, they told me those bugs maybe relative to jbuilder. so, I copy that issue here. ### Steps to reproduce Following example:...
It seems jbuilder make SQL query before render it jbuilder. Is not using ActiveRecord::Associations passed from controller correctly. Example: ```ruby # Model class Product has_many :product_sides has_many :product_side_images, through: :product_sides...
Hello! Is there any way to pass a block to a partial? For example like this ``` json.partial!('member', member: @member) do json.total_loans(@member.total_loans) end ``` In the partial, it looks like...
We have some `.jbuilder` files that look like ```jbuilder id thing.id type thing.class … ``` Ever since e2e8623b08078ad6a2323ce8ecaf642b7afe1166, this results in a stack overflow. It's easy to solve with ```jbuilder...
I am getting an warning/error message - "Couldn't find template for digesting" for my partials while using `json.cache!` in 2.6.0, but everything works for me. I am having a hard...