RailsCasts Pro episodes are now free!

Learn more or hide this

jonathan-mui's Profile

GitHub User: jonathan-mui

Site: http://www.jonathanmui.com

Comments by

Avatar

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.