# File lib/deltacloud/helpers/application_helper.rb, line 177 def link_to_documentation return '' unless request.env['REQUEST_URI'] uri = request.env['REQUEST_URI'].dup uri.gsub!(settings.root_url, api_url_for(:docs)) unless uri.include?("docs") #i.e. if already serving under /api/docs, leave it be '<a href="%s">[ Documentation ]</a>' % uri end