Skip to content

Instantly share code, notes, and snippets.

@bradley
Last active July 14, 2017 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradley/21a7b087d5b2756dc0f90af9cecce780 to your computer and use it in GitHub Desktop.
Save bradley/21a7b087d5b2756dc0f90af9cecce780 to your computer and use it in GitHub Desktop.
using Map/Join for HAML markup
= raw (@employee.documents.active.map do |document|
- link_to document.display_name, document.file.expiring_url
- end.join(", "))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment