I'm trying to print list of files from current directory. I used
@files = Dir.glob('*')
and in views i'm trying to print using
<%= @files.each {|file| puts "<li>" + file + "</li>"}%>
But instead it prints me just array of filenames, without <li> tag. WHat am i doing wrong?