Spree extension to add Youtube videos to products with similar integration as images. WARNING: An override of JavaScript behavior on images Spree::Products#show will stop images from changing on mouse hover, need to do a refactoring on "app/assets/javascrips/frontend/products.js.coffee" or some adjustment on "app/assets/javascrips/frontend/spree_youtube_embed.js"


  • Better Commenting (Initial Release)
  • Rules for others video hosting ie.: Vimeo
  • CoffeeScript optimization to restore onmouseenter and onmouseleave behavior to images
  • CSS optimization


Add spree_youtube_embed to your Gemfile:

gem 'spree_youtube_embed', github: 'ErvalhouS/spree_youtube_embed', branch: '3-0-stable'

Bundle your dependencies and run the installation generator:

bundle exec rails g spree_youtube_embed:install


First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle exec rake

When testing your applications integration with this extension you may use it's factories.
Simply add this require statement to your spec_helper:

require 'spree_youtube_embed/factories'

Copyright (c) 2016 Fernando Bellincanta, released under the New BSD License


No comments yet

Please login to add comment.