Skip to content

Commit

Permalink
fixed typos - administrtator => administrator, ActiveSuport => Active…
Browse files Browse the repository at this point in the history
…Support
  • Loading branch information
devcurmudgeon authored and al2o3cr committed Sep 14, 2011
1 parent 04dd273 commit 9369bfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dryml/taglibs/core.dryml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ For example, you might want to wrap an `<img>` tag in an `<a>` tag but only unde

### Usage

<if test="&current_user.administrtator?">Logged in as administrator</if>
<if test="&current_user.administrator?">Logged in as administrator</if>
<else>Logged in as normal user</else>

**IMPORTANT NOTE**: `<if>` tests for non-blank vs. blank (as defined by ActiveSuport), not true vs. false.
**IMPORTANT NOTE**: `<if>` tests for non-blank vs. blank (as defined by ActiveSupport), not true vs. false.

If you do not give the `test` attribute, uses the current context instead. This allows a nice trick like this:

Expand Down

0 comments on commit 9369bfd

Please sign in to comment.