Skip to content

Instantly share code, notes, and snippets.

@fabiode
Created December 27, 2011 20:10
Show Gist options
  • Save fabiode/1525001 to your computer and use it in GitHub Desktop.
Save fabiode/1525001 to your computer and use it in GitHub Desktop.
def bulletin_content(bulletin)
if bulletin.is_image?
image_tag bulletin.asset.url(:large)
else
link_to image_tag('download_arquivo.png'), @bulletin.asset.url(:original)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment