Rails 4 - How to display and play a video file?
<p>In rails 4.2.4, I have uploaded one video file using <code>paperclip</code>. How can I display and play it? I have tried to display using <code>&lt;video src="&lt;%= video.document.url %&gt;" controls&gt;&lt;/video&gt;</code> but it is showing route error.</p>

<p>File url is <code>http://localhost:3000/public/videos/user_1/3/sample_HD.mp4?1461059434</code></p>

<p>File which is saves under <code>/public/videos/user_1/3/</code> folder.</p>

<p>How can I display and play a saved video? Do I need to use other method?</p>