The javascript is not working for 'owlcarousel-rails' plugin. I have the
gem and require statements for application.css/application.js setup
properly.
//= require owl.carousel
*= require owl.carousel
*= require owl.theme
I called the plugin with:
<script type= 'text/javascript' >
$(".owl-carousel").owlCarousel();
</script> in my <header></header>
<div class="owl-carousel" style="z-index: 1;">
<div><%= image_tag 'JohnsPhotos/weekend-getaway1.jpg'
%></div>
<div><%= image_tag 'JohnsPhotos/weekend-getaway2.jpg'
%></div>
</div> the tags for the plugin are mid page in the
<body></body>
Why isn't the javascript/css displaying the photos?
--
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 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/9ecfb10a9cfba181e6cabb43cd364d4d%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment