I\'m trying to render a pretty simple data structure using RABL, but I can\'t figure out how to remove the child root nodes properly. Here are my two templates.
Fir
This is the usual way of removing the root json (rather than specifying object_root: false)
config/initializers/rabl_config.rb
Rabl.configure do |config| config.include_json_root = false end
Does moving that to there (and restarting rails), fix it?