I think this is not necessary, as there is already a path helper in the core, see line 70 in paths.rb