# File Listing

**URL:** <https://www.ruby-forum.com/t/file-listing/90171>\
**Category:** Rails\
**Created:** [March 26, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/file-listing/90171 "2007-03-26T16:38:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanmctex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@seanmctex](https://www.ruby-forum.com/u/seanmctex)\
**Post date:** [March 26, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/file-listing/90171/1 "2007-03-26T16:38:47Z")

</div>

Completely new to Rails. Actually, I’m not even the direct programmer  
of the site. Our web administrator is bringing in rails to replace what  
we have now and to speed deployment of new information.

By an large, our needs are very simple, but when I asked about one  
feature, he wasn’t sure off the top of his head, so I’m digging around  
seeing what I can find. On our current pages, I have a very simple PHP  
script that will list the files in a given directory to the user as  
links in a nice little table with the file name, modify date and file  
size. I don’t do this through directory browsing because it’s an  
internal site that is used by some higher-ups and looks count, so I  
apply pretty formatting. In some cases, I will determine some  
information based on the file name, such as looking at the first 3 or 4  
letters to determine what grouping it should be in.

This is used as a very basic report distrobution. I just ftp the files  
up, and they show up on the page. if I take a file out, it comes off  
the page. No links to update, very rapid.

I don’t need a full on CMS for this, just that one little part. Anyone  
know of something that can accomplish this or an easy ruby script that  
can do it?

---

<div class="post-metadata">

**Author:** ![seanmctex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@seanmctex](https://www.ruby-forum.com/u/seanmctex)\
**Post date:** [March 26, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/file-listing/90171/2 "2007-03-26T19:00:12Z")

</div>

Sean Mehrtens wrote:

> Completely new to Rails. Actually, I’m not even the direct programmer  
> of the site. Our web administrator is bringing in rails to replace what  
> we have now and to speed deployment of new information.
> 
> By an large, our needs are very simple, but when I asked about one  
> feature, he wasn’t sure off the top of his head, so I’m digging around  
> seeing what I can find. On our current pages, I have a very simple PHP  
> script that will list the files in a given directory to the user as  
> links in a nice little table with the file name, modify date and file  
> size. I don’t do this through directory browsing because it’s an  
> internal site that is used by some higher-ups and looks count, so I  
> apply pretty formatting. In some cases, I will determine some  
> information based on the file name, such as looking at the first 3 or 4  
> letters to determine what grouping it should be in.
> 
> This is used as a very basic report distrobution. I just ftp the files  
> up, and they show up on the page. if I take a file out, it comes off  
> the page. No links to update, very rapid.
> 
> I don’t need a full on CMS for this, just that one little part. Anyone  
> know of something that can accomplish this or an easy ruby script that  
> can do it?

See this thread:

[http://www.ruby-forum.com/topic/59918#55673](http://www.ruby-forum.com/topic/59918#55673)
