Fix access to paths variable

According to the docs[0], `paths` is a Hash.

[0]: http://edgeapi.rubyonrails.org/classes/Rails/Paths.html