Forum: Ruby on Rails redirecting to uploaded files directory

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7110e55e7d2da77b30a9ba09a37c3c29?d=identicon&s=25 sal (Guest)
on 2008-10-09 06:51
(Received via mailing list)
All,

I'm running into a bit of a newb issue here. I've created an app with
attachment_fu which by default created a directory within public as
"public/#{tablename}". But now when I try and browse to my default
action for that resource which is the same actionname as my tablename
I get redirected to a file listing of that public/tablename
directory... within my index view of that action I want to display the
file I've uploaded but I cannot figure out why it's redirectiing to
the files directory attachment_fu has uploaded the file to. not sure
if this is a webserver (apache/passenger) or a rails routing issue...

hope that makes sense

can anyone please help?

thanks in advance
7110e55e7d2da77b30a9ba09a37c3c29?d=identicon&s=25 sal (Guest)
on 2008-10-09 07:22
(Received via mailing list)
ack!

I meant to type same controller name as the default directory
attachment_fu creates; I get a server listing of files instead of the
index of that resource.

my bad.

any thoughts?
This topic is locked and can not be replied to.