changes <documents> to <document> in routes.rb