Ruby on Rails Thursday, February 18, 2016

On 18 February 2016 at 10:43, Kranthi Kumar <lists@ruby-forum.com> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.

No comments:

Post a Comment