Thanks for the reply.

The exe file is on another server.

Thanks!

Frederick Cheung wrote:
> On Mar 25, 6:54�pm, Jay Dev <rails-mailing-l...@andreas-s.net> wrote:
>> Hi Folks,
>>
>> I'm new to Rails and working on a project where after the user logs in
>> they can click on a link to download an exe file ( say for example the
>> file is athttp://test.com/test.exe). I want to keep the link to the exe
>> file hidden. What are the best ways to implement this step.
>>
>> I was thinking about using the redirect to url but I have been getting
>> an error saying that I cannot use two redirect's in a function.
>>
> 
> redirect won't hide the url
> 
>> Also, I was thinking of using NET:HTTP to use http request but I have no
>> idea how to implement this.
> 
> You could but it would block the mongrel for the entire time it took
> to download the file.
> 
> What's not clear from your example is whether this file is on your
> server or somewhere else.
> 
> Fred

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to