Maybe this could be:

     JSONModel(:resource).parse_reference(json['resource']['ref'])[:id]

to save having to use a regexp.

Would it make more sense to move this logic into mixins/notes.rb?  I imagine we'll end up wanting to support other record types too and don't want to have to spread this logic through all the controllers.  Feels more like a model-level concern to me...