It will not work like this on Heroku
read this and make sure you did everything right
https://devcenter.heroku.com/articles/rails-asset-pipeline
On Tuesday, 16 February 2016 12:11:45 UTC, Ruby-Forum.com User wrote:
>
> I'm trying to include a video as background in my application's landing
> page.
>
> Placed the video in assets/videos folder.
>
> Added `config.assets.paths << "#{Rails.root}/app/assets/videos"` to
> production.rb file.
>
> The code:
>
> <%= video_tag "Video.webm", controls: false, autoplay: true, muted:
> true, loop: true, id: "bgvideobg", class: "fullscreen-bg-video", type:
> "video/webm" %>
>
>
> It works fine in my local machine.
>
> I pre-compiled the assets locally using `bundle exec rake
> assets:precompile RAILS_ENV=production` and pushed onto heroku.
>
> For some reason the video is not playing/streaming on server.
>
> In logs it shows as
>
> ActionController::RoutingError (No route matches [GET]
> "/assets/Video-3a82304f95c15edbdd93924fe27e9b42.webm"):
>
>
> I've checked my public/assets folder and file
> "Video-3a82304f95c15edbdd93924fe27e9b42.webm" does exist.
>
> Any help would be highly appreciated. Thanks.
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/36ce1bfc-2592-4915-90c7-85a84cdf19af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.