Browse files

Fix method name at escape html FAQ block

Rack::Utils#escape exists, but it is the method for URI escape.
The method for HTML escape is Rack::Utils#escape_html.
In refered page escape_html is also used,
please see
  • Loading branch information...
1 parent e02e3d0 commit 5c4e9be38329709870eef9a2b418f5a465a22367 @bigwheel bigwheel committed Jul 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 faq.markdown
@@ -235,7 +235,7 @@ in your helpers and create an `h` alias as follows:
helpers do
include Rack::Utils
- alias_method :h, :escape
+ alias_method :h, :escape_html
Now you can escape html in your templates like this:

0 comments on commit 5c4e9be

Please sign in to comment.