Hi all,
I have an m4v file which I'm trying to view on my iPhone via a rails
app.
If i place the file in my apache root or in /public and hit the url, it
plays back fine, but no matter what I try with rails, the iPhone will
try to download the file and receive an error.

I have set up an apache->mongrel balanced cluster, with the rails
/public directory being handled by apache
config here: http://pastebin.ca/1245995

I've tried adding a mime-type to config/initializers/mime_types.rb like
this:
Mime::Type.register "video/m4v", :m4v
but that made no difference.

Any ideas where i'm going wrong? Shouldn't the apache server be serving
the static content given my config?

according to this post Directory directives are recursive, so should
apply to files in RAILS_ROOT/public/files/*
http://mail-archives.apache.org/mod_mbox/httpd-wiki-changes/200702.mbox/[EMAIL 
PROTECTED]

the files i'm linking to are like: http://localhost/files/video.m4v

thanks for reading
-- 
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