views:

12

answers:

0

hi,

i would like to display the all contents of a folder in my site. For example, under www.mysite.com, I have a folder called "myfiles". In regular apache setting, if I type: http://www.mysite.com/myfiles/ and if myfiles does not have index.html or index.php, then I can get this:

**Index of /mysite/myfiles**

Parent Directory 
Changes.html 
Changes.txt 
HelloWeb.class 
HelloWeb.html 
README.WebDB 
README.txt 
Support/ 
WebDB.gif
hello.png
WebDB.pm~ 
WebDB/ 
WebDB2.pm~ 
WebDB_new.pm 
WebDB_new.pm~ 
auto-form/ 
basics/ 
database/ 
ecard/ 
ecom/ 
error.txt 
error_log 
find.pl 
flyers/ 
forms/ 
giveaway/ 

now, I've deployed mysite with rails. How could I configure rails to achieve the same result as I did before i deployed rails?

thanks!