Hi,

I have the following:

has_attached_file :data,
 :styles => {:theora => {:format => "ogv"}, :still => {:format =>
"jpg"},
    :small => {:format => "jpg"}},
 :url    => "/uploads/products/:basename:suffix.:extension",
 :path   => ":rails_root/uploads/products/:basename:suffix.:extension"


Let's say I upload a video called video.mp4, now I want paperclip to
generate the url:

object.data.url(:still) => /some/url/video.jpg


But for some reason on my server, paperclip generates:
/some/url/video.mp4

Moreover, if I update code and restart the server, paperclip will
correctly generate the .jpg extension the first time, but if I reload
the page, it messes up and goes back to .mp4.


Everything works fine on my dev machine (mac mongrel+nginx), and this
strange behavior only happens on the server (freebsd passenger+nginx).


Did anyone experience such weird thing? It's driving me crazy!.
-- 
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