On 18 February 2016 at 10:43, Kranthi Kumar <[email protected]> wrote: > Hi. I think I have followed everything mentioned in the above mentioned > post "https://devcenter.heroku.com/articles/rails-asset-pipeline". > > Reading further I saw about "sprockets_better_errors" in the article and > included it in my gemfile. > > Now when I run in my local machine I'm getting the following error. > > ActionView::Template::Error (wrong number of arguments (2 for 1)): > 3: <div class="bgvideo1"> > 4: <div class="videowrap"> > 5: > 6: <%= video_tag "video.webm", controls: false, autoplay: > true, muted: true, loop: true, id: "bgvideobg", class: > "fullscreen-bg__video", type: "video/webm" %>
That is a bit odd as video_tag should accept two args. That sort of issue may mean that the error is not actually where it seems to be. Try fiddling with the video_tag line to get some clues. Take it out, change it to just one arg, and so on find out what the real problem is. Colin -- 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/CAL%3D0gLsiY_ei5AYYp4u2xFT2vZs1ApiDKEH1EQ_G2MC6CTtAZw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

