File Listing

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?

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