acts_as_video_fu
acts_as_video_fu copied to clipboard
Rails plugin that easily allows you to show video streams on your site.
h2. ActsAsVideoFu
A Rails plugin that easily allows you to show video streams on your site. Currently, YouTube and Vimeo streams are supported.
Note that #video_url is expected to be in these formats: YouTube: http://www.youtube.com/watch?v=gEILFf2XSrM Vimeo: http://www.vimeo.com/726135
h3. Installation
Install the gem
sudo gem install mdarby-acts_as_video_fu
Require the gem in your config/environment.rb file
config.gem 'mdarby-acts_as_video_fu', :lib => 'acts_as_video_fu'
h3. Example
Generate a resource that includes the title:string and video_url:string attributes
./script/generate scaffold Video title:string video_url:string
Add 'acts_as_video_fu' to your model
class VideoShow the video's thumbnail in any view you might like
Add the 'display_video' helper to show the full-sized video in any view you might like
Copyright (c) 2008 Matt Darby, released under the MIT license