you are here: codestackercodes [RSS]listing files in a directory with rails

listing files in a directory with rails

@files = Dir.glob("public/files/*")

for file in @files
    puts file
end

Comments