Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created January 23, 2012 20:27
Show Gist options
  • Save jfirebaugh/1665374 to your computer and use it in GitHub Desktop.
Save jfirebaugh/1665374 to your computer and use it in GitHub Desktop.
I will first
= succeed(", then render this half of the sentence if a condition is met" if @condition) do
= link_to('link somewhere', 'http://example.com')
@ryenski
Copy link

ryenski commented Feb 15, 2012

I will first
= succeed ',' do
  = link_to 'link somewhere', 'http://example.com'
- if @condition
  then render this half of the sentence if a condition is met

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment