RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jonathan-mui
Late reply, but...
There's json.cache!, but I couldn't get that to work. I ended up doing a Rails.cache.fetch([id, 'name']) do ... end block around the entire json response in the jbuilder file.
Rails.cache.fetch([id, 'name']) do ... end