Created
May 29, 2013 04:09
-
-
Save zirosas/5667918 to your computer and use it in GitHub Desktop.
if you are at the site root?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if you are at the site root: | |
current_page?('/') | |
or, if you defined map.root in your config/routes.rb: | |
current_page?(root_url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment