is there a clean way to use helper methods? · Issue #374 · rails/jbuilder

i have to do this all over my code json.child! do json.type 'space' json.style do json.height '20' end end and i naively was thinking i could do something like def space(width_or_height) width = wi...