Use `Resource#singular` for determining class name

`Resource#name` can return a name or string depending on if the `:as`
option was used when drawing routes. `Resource#singular` always returns
a string and handles singularizing the route name.