public
Description: External Video management plugin.
Homepage:
Clone URL: git://github.com/linkingpaths/acts_as_videoclub.git
Click here to lend your support to: acts_as_videoclub and make a donation at www.pledgie.com !
name age message
file .gitignore Thu Oct 16 09:11:28 -0700 2008 gemified [aitor]
file MIT-LICENSE Mon Aug 25 23:38:52 -0700 2008 initial README and fixed copyright on license [molpe]
file README Mon Dec 15 06:34:44 -0800 2008 daylimotion support [molpe]
file Rakefile Fri Aug 22 02:15:58 -0700 2008 first commit [aitor]
file acts_as_videoclub.gemspec Thu Oct 16 09:11:28 -0700 2008 gemified [aitor]
directory generators/ Thu Dec 04 08:46:47 -0800 2008 README updated, youtube support is back and add... [molpe]
file init.rb Thu Oct 16 09:11:28 -0700 2008 gemified [aitor]
directory lib/ Tue Dec 16 02:38:24 -0800 2008 fixed google video's regexp [molpe]
directory tasks/ Fri Aug 22 02:15:58 -0700 2008 first commit [aitor]
directory test/ Fri Aug 22 02:15:58 -0700 2008 first commit [aitor]
README
ActsAsVideoclub
===============

Allows for videos to be added to any model, with a helper for showing them on views

Right now it supports Google Videos, Dailymotion, YouTube and Vimeo APIs, but adding additional sources is something 
trivial.


== Resources

Install
 * Run the following command:
 
 script/plugin install git://github.com/linkingpaths/acts_as_videoclub.git
 
 * Generate migration:
 
 ruby script/generate acts_as_videclub_migration
 
== Usage
 
 * Make your ActiveRecord model act as videoclub.
 
  class Flat < ActiveRecord::Base    
    acts_as_videoclub
  end
  
  Now you have the relationship: 
  
    has_many :videos, :as => :resource
   
  and method:
  
    has_videos?
 
 * Add a video

    video = @flat.videos.build(params[:video][:source_url]) unless params[:video][:source_url].blank?
 
  or something like this
  
    video = Video.new(:source_url => params[:video][:source_url],
                      :title => params[:video][:title], 
                      :resource => @flat)
    video.save
    
 * Show a video embeded
 
  video_embed_code(@flat.videos.first, options)
  
  Options accepted: width, height


== More

http://github.com/linkingpaths/acts_as_videoclub
http://github.com/linkingpaths/acts_as_videoclub/wikis


Copyright (c) 2008 Linking Paths, released under the MIT license