-if input.video_file -video_file = input.video_file %video{:controls => "controls", :poster => video_file.poster.large.url, :style => "width:100%" } -if video_file.mpg? %source{:src => video_file.mpg.url, :type => "video/mp4"} -if video_file.webm? %source{:src => video_file.webm.url, :type => "video/webm"} -if video_file.ogg? %source{:src => video_file.ogg.url, :type => "video/ogg"} =image_tag video_file.poster.large.medium.url, :alt => video_file.title, :title => "No video playback capabilities, please download the video below", :width => "640", :height => "360" =link_to "video en mp4", video_file.mpg.url