Skip to content

Instantly share code, notes, and snippets.

@mperham
Created September 3, 2009 16:27
Show Gist options
  • Save mperham/180381 to your computer and use it in GitHub Desktop.
Save mperham/180381 to your computer and use it in GitHub Desktop.
Surround a heredoc with quotes and you can continue the code on the same line:
render :status => 404, :text => <<-'EOH' and return unless setup
article not found<br/>
I, as a server, have failed<br/>
https?
EOH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment