Skip to content

jerome/acts_as_video_fu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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: http://www.youtube.com/watch?v=gEILFf2XSrM 
Vimeo: http://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 => "http://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

No packages published