On Mar 11, 10:13 am, Ralph Shnelvar <[email protected]> wrote:
> Thank you.   Again, this is way over my head.
>
> The line of HAML I have is:
>   = link_to '(MP4)', '/videolib/Workstation-Suspend-Put-001.mp4', 'class' => 
> video_type_link_to
>
> The user clicks on "(MP4)" and the download automagically begins.
>
> Does the link_to initiate a send_file?  Should I be doing a send_file 
> explicitly?  How?
>
> These large-ish (100MB each) videos are fairly static ... maybe being updated 
> once a week or less.

Ok, this is just a file in your app's public folder, right? If so,
then it shouldn't be being served by rails (whatever handles your
static assets (apache, nginx etc.) should be handling them. You should
probably delve into your web server configuration to find out how to
get it to do partial gets.

Fred
>
> Ralph

-- 
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