Instantly share code, notes, and snippets.

Embed
What would you like to do?
helpers do
def file_link(file)
filename = Pathname.new(file).basename
"<li><a href='#{file}' target='_self'>#{filename}</a></li>"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment