Acts As Video Fu plugin

Plugin details

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

Websitehttp://blog.matt-darby.com/ Repositorygit://github.com/mdarby/acts_as_video_fu.git Author Matt Darby Tags video LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/mdarby/acts_as_video_fu.git

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
<%= display_video(@video) %>

# You can override the default video size by passing height & width
<%= display_video(@video, :height => 200, :width => 300) %>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 month ago