Created
June 6, 2013 08:33
-
-
Save is8r/5720139 to your computer and use it in GitHub Desktop.
partialに渡しているlocalsの値が無い時にhaml側でデフォルトの値を設定する
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
- xxx ||= "デフォルト値" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment