I like the second idea better. That way we don't need to bother controllers with the details of resource id generation. I am updating it now.