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