./ Samantha1.jpg Samantha3.jpg SamanthaAndEmily2.jpg Z-ORIGINALS/
../ Samantha2.jpg SamanthaAndEmily1.jpg SamanthaEmilyMax.jpg
Here is the code from my .rhtml:
<%= public_dir = File.expand_path("public", RAILS_ROOT) %><br>
<%= fullpath = public_dir + "/images/fosters/2007/Samantha" %><br>
<%= images_dir = Dir.new(fullpath) %><br>
Printing out list of files:<br>
<%= images_dir.each { |file| "hello" } %>
And here is the output:
/home/rodneya/railscats/public
/home/rodneya/railscats/public/images/fosters/2007/Samantha
#
Printing out list of files:
#
Does anyone know what I am doing wrong?
Thanks,
Tina