Skip to content

Instantly share code, notes, and snippets.

@BartlomiejSkwira
Last active December 17, 2015 00:29
Show Gist options
  • Select an option

  • Save BartlomiejSkwira/5521829 to your computer and use it in GitHub Desktop.

Select an option

Save BartlomiejSkwira/5521829 to your computer and use it in GitHub Desktop.
Paperclip - Check if model has attachment
- if @agent.avatar.file?
= image_tag @agent.avatar.url(:normal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment