Skip to content

Instantly share code, notes, and snippets.

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