mdarby / acts_as_video_fu

Rails plugin that easily allows you to show video streams on your site.

This URL has Read+Write access

mdarby (author)
Sun Oct 05 07:35:16 -0700 2008
commit  f1b7ef01506c9afd534ba607a8df6ef0425003d4
tree    858017b8a414724c9883773a9690c65e2dddf529
name age message
file MIT-LICENSE Sun Oct 05 07:35:16 -0700 2008 Initial commit [mdarby]
file README Loading commit data...
file Rakefile Sun Oct 05 07:35:16 -0700 2008 Initial commit [mdarby]
file init.rb
file install.rb Sun Oct 05 07:35:16 -0700 2008 Initial commit [mdarby]
directory lib/
directory tasks/ Sun Oct 05 07:35:16 -0700 2008 Initial commit [mdarby]
directory test/ Sun Oct 05 07:35:16 -0700 2008 Initial commit [mdarby]
file uninstall.rb Sun Oct 05 07:35:16 -0700 2008 Initial commit [mdarby]
README
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: http://www.youtube.com/watch?v=gEILFf2XSrM 
Vimeo: http://vimeo.com/726135

Example
=======

./script/generate scaffold Video title:string video_url:string


Video.create!(:title => "Some Title", :video_url => "http://www.youtube.com/watch?v=gEILFf2XSrM")


#show.html.erb
<%= display_video(@video) %>


Copyright (c) 2008 [Matt Darby], released under the MIT license