Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TXDynamics/5622539 to your computer and use it in GitHub Desktop.
Save TXDynamics/5622539 to your computer and use it in GitHub Desktop.
Ruby-Rails-String-Show-Alternate-If-Blank
<%= model.field.blank? ? 'Fill In' : model.field %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment