Michael Pavling wrote:
> On 28 June 2010 21:45, dieinzige <[email protected]> wrote:
>> what the hell are u doing, if u have file, u can simplify get link to user,
> 
> What if the OP needs users to be logged in to view files? Or complete
> some other approval process. Not much sense having them accessible
> from the public directory in that instance, which would allow people
> to just bypass the security.

I'm having the file displayed now, but the other issue that I'm facing 
now is : I have several files to open, I put them in an array that I 
loop through, but only the last file is opened:

What's wrong ?

arr.each do |form|
      file_name = form + "-" + vue.inte_no.to_s + "-" + vue.poas_id.to_s 
+ "-" + vue.prch_id.to_s + ".xdp"
         send_file(path_pdf_cpy + file_name,:type => 'application/pdf' , 
:disposition => 'attachment', :filename => file_name)
   end
-- 
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 [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