"Privacy Policy".downcase = "privacy policy". I don't think that's what you want is it? Maybe web_template.name.parameterize?