Browse files

Fix the erubis auto escape faq bit.

  • Loading branch information...
bemurphy authored and kgrz committed Mar 11, 2013
1 parent 32341f1 commit 4291365b52d3849eee5e5f8b9820448f80fa072b
Showing with 2 additions and 2 deletions.
  1. +2 −2 faq.markdown
@@ -267,12 +267,12 @@ How do I automatically escape HTML? {#auto_escape_html}
Require [Erubis]( and set `escape_html` to `true`:
require 'erubis'
- set :erubis, :escape_html => true
+ set :erb, :escape_html => true
Then, any templates rendered with Erubis will be automatically escaped:
get '/' do
- erubis :index
+ erb :index
Read more on the [Tilt Google Group](!topic/tiltrb/PPm-sMz6Swc) and see [this example app]( for details.

0 comments on commit 4291365

Please sign in to comment.