On Tue, Jul 7, 2009 at 10:40 AM, Hans
Hartmann<[email protected]> wrote:
>
> Hi there,
>
> i want to embed a Quicktime-Movie on my Page.
> I use the following code:
>
> <embed src="Z:/09002_R/client/090423_1730/RO.mov" width="200"
> height="240" autoplay="true">
>
> Getting the file by an internet-adress erverything is fine, but it
> doesn't apply by using the path from my hard-disk.

Well a file url looks something like this:

file:///Z:/09002_R/client/090423_1730/RO.mov

But if that works at all, it will only work on YOUR computer, or at
least one which has that file in that place on a local Z disk.

I think that most browsers balk at such a URL anyway when it's
received from a server.

> Is their a special usage of describing path-names in rails?

If you want to serve up the file, you need to put it under the public
directory, say in a movies subdirectory, and then use a path like

movies/movie_name.mov

I'm not sure what your directory structure means you could have a
subdirectory structure under public/movies the point is that the url
path should be relative to the public dir.


-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

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