Hint: Use send_data
On Oct 22, 6:42 am, JUScruZN
<levelg987654...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
> Can anybody tell me how to display multiple pictures with a download link
> below the pictures.
> Scenario :
> The pictures will be in a non public folder and I want to stream (if
> possible) the pictures to the browser with a link below the pictures that
> will allow a user to download the picture.
> The reason I am using a non public folder is to regulate authorization to
> the pictures, thus only giving a certain set of users access to the
> pictures. Unfortunately I must use non public folders to store the
pictures.
> I can stream one picture to the browser, but I cannot add any other
> pictures, text or links to this rhtml.
> To create the html containing the pictures and links before hand are not an
> option, since I want to create the html being displayed to be dynamic.
>
> I dont have the option to store the image in a database, as suggested by
> alot of google search results.
>
> As you have probably guested, I am a newby to Ruby on Rails, trying to
> convert my perl scripts to ROR.
>
> Thanks in advance.
> --
> View this message in
context:http://www.nabble.com/Displaying-Multiple-pictures-tf4667247.html#a13...
> Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---