Last active
July 14, 2017 22:21
-
-
Save bradley/21a7b087d5b2756dc0f90af9cecce780 to your computer and use it in GitHub Desktop.
using Map/Join for HAML markup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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