Documenting how to write rules to work with node-resources.