Browse files

Fix order of arguments to alias_method

  • Loading branch information...
1 parent ae8a5bc commit c9bb5fa7409a0555185f7e686dfaae1bc53fd37d @cypher cypher committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 faq.markdown
2 faq.markdown
@@ -222,7 +222,7 @@ in your helpers and create an `h` alias as follows:
helpers do
include Rack::Utils
- alias_method :h, :escape
+ alias_method :escape, :h
Now you can escape html in your templates like this:

0 comments on commit c9bb5fa

Please sign in to comment.