Bug fixes for restful template

- Fix improper reference to `path`
- Reorder so `show` doesn't match for `new` case