Hi all…
i have folder named test in my application’s public folder .
i want to iterate that folder named test which is in public folder.
for that i tried this code it gives me error like
Errno::ENOENT
in Chat logController#chat_log
No such file or directory - /public/ACMServer_exe/ChatHistory
RAILS_ROOT:
D:/Projects/inProgress/ANGACM0908/re/Task/acm_administration-31-jan-09</p
so how should i iterate the folder test which is in public folder
Hi all…
i have folder named test in my application’s public folder .
i want to iterate that folder named test which is in public folder.
for that i tried this code it gives me error like
What code ? Dir.each, Dir.glob, Dir.entries can all be useful for
this sort of thing.
Hi all…
i have folder named test in my application’s public folder .
i want to iterate that folder named test which is in public folder.
for that i tried this code it gives me error like
What code ? Dir.each, Dir.glob, Dir.entries can all be useful for
this sort of thing.
Fred
Dir.foreach("/ACMServer_exe") do |folder_name|
does this code is correct.
but it gives me error.
=> this folder is in public folder => ACMServer_exe
pls help me
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.