Skip to navigation
How to list files like excel in rails?
07.12.13
require 'find' folder = "public/spreadsheets/" documents = ['xls'] @document_files = Array.new Find.find(folder) do |path| ext = File.extname(path).split(".") documents.include?(ext[1]) ? @document_files << path : nil end
Reply
Anonymous
how to list files like excel in rails?
require 'find' folder = "public/spreadsheets/" documents = ['xls'] @document_files = Array.new Find.find(folder) do |path| ext = File.extname(path).split(".") documents.include?(ext[1]) ? @document_files << path : nil end
07.12.13
Reply
Anonymous
Information Epoch 1732376381
Allow the user to tailor the environment.
Home
Notebook
Contact us