Properly generate route helpers for resources with custom actions set

Fixes #1