Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix error at escape html FAQ block #63

Merged
merged 1 commit into from

2 participants

@Mehonoshin

Hi all! There is a mistake at official website.
http://www.sinatrarb.com/faq.html#escape_html
We should swap params creating alias method h

@cypher cypher merged commit 7a42de0 into sinatra:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 29, 2012
  1. @Mehonoshin
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  faq.markdown
View
2  faq.markdown
@@ -235,7 +235,7 @@ in your helpers and create an `h` alias as follows:
helpers do
include Rack::Utils
- alias_method :escape, :h
+ alias_method :h, :escape
end
Now you can escape html in your templates like this:
Something went wrong with that request. Please try again.