stevo / colorbox-rails

Make links open in lightbox a breeze
MIT License
77 stars 58 forks source link

Youtube videos #27

Closed scottolsen closed 6 years ago

scottolsen commented 10 years ago

Playing around with youtube vids and haven't been able to get one to work. Is it possible to with this gem?

TylerSangster commented 9 years ago

Here is an example of mine

= link_to (image_tag youtube_image(@asset.video_url),width: 300 ), embed(@asset.video_url), rel: 'photos', data: {colorbox_static: true, colorbox_title: @asset.name, colorbox_height: '480', colorbox_width: '854', colorbox_iframe: true }

= link_to (image_tag IMAGE, embed_URL, rel: 'Group name', data: { colorbox_static: true, colorbox_title: @asset.name, colorbox_height: '50%', colorbox_width: '80%', colorbox_iframe: true }