Ruby on Rails Thursday, February 21, 2013

Hi,

I have a question about load local files by my application.

I use this code to view a flash video in my app:

<embed src="<%= asset_path('file.swf') %>"/>

This works fine until my swf file is in myapp/app/assets/...

Can I load a flash video from, for example, C:/Videos ? I found nothing
about that.

I tried to create a link like this:

<%= link_to "Video", 'file:///C:/Videos/file.swf', :method => 'post' %>

but not work.

Thanks in advance.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment