you might need to store the files outside of public and have rails
serve them.
i am still not very experienced with rails so i  could be wrong.

On Sep 22, 1:52 pm, Nik <[EMAIL PROTECTED]> wrote:
> Hello all, I asked this question yesterday but seem to get no
> response, maybe there's a code about how much I should explain before
> an answer is deserved or maybe it was confusingly stated. But let me
> try again:
>
> If I were to allow users to upload files, say user A uploaded A.mov,
> and user B uploaded B.mov. I know that I can
> #User model
> has_many :files
>
> #File Model
> belongs_to :user
>
> to ensure that A only sees A.mov in his page and B only sees B.mov in
> his page.
>
> But what if user A types in the urlhttp://dns/public/files/B.mov?
> How does one usually go about that?
>
> Thank you in advance for *any* comment posted!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to