fix method name generation

the prefix to remove is the resource path, not the plural of the
model name