Do you have a model for the uploaded files. This could have a field for the password.
When presenting a link to the file, if it has a password then user is redirected to a screen to fill out the password and if it matches they can download the file. The thing to watch out for is that the link for the protected file should be a one time url so that anyone who copies the final link will not be able to download the file. On 13 April 2011 13:41, Ivan K. <[email protected]> wrote: > Hi Peter, sorry i don't really know english well. > I have small application. User can upload files. Files could be public > or private. And if a user decided to make file private he could set > password on file. So if any other user want to get acces to the > private file he need password. > Is it a little bit clearer? > Thanks. > > On Apr 13, 6:24 pm, Peter Hickman <[email protected]> > wrote: >> We don't have the faintest idea as to what you are talking about. >> >> Please explain the use case for this feature. >> >> On 13 April 2011 12:36, Ivan K. <[email protected]> wrote: >> >> >> >> >> >> >> >> > User must have opportunity to set password on their files. >> > So what would be the best way to implement it? >> > Is there any gems? >> > Regards, >> > Ivan. >> >> > -- >> > 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 >> > athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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. > > -- 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.

