forked from mdarby/acts_as_video_fu
-
Notifications
You must be signed in to change notification settings - Fork 1
Rails plugin that easily allows you to show video streams on your site.
License
jerome/acts_as_video_fu
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ActsAsVideoFu ============= Rails plugin that easily allows you to show video streams on your site. Currently, YouTube and Vimeo streams are supported. #video_url is expected to be in these formats: YouTube: https://www.youtube.com/watch?v=gEILFf2XSrM Vimeo: https://www.vimeo.com/726135 Example ======= ./script/generate scaffold Video title:string video_url:string #video.rb class Video < ActiveRecord::Base acts_as_video_fu end Video.create!(:title => "Some Title", :video_url => "https://www.youtube.com/watch?v=gEILFf2XSrM") #show.html.erb # Show the video <%= display_video(@video) %> # Show the video's thumbnail image <%= image_tag thumbnail_url(video) %> Copyright (c) 2008 Matt Darby, released under the MIT license
About
Rails plugin that easily allows you to show video streams on your site.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published