This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install mdarby-acts_as_video_fu
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.textile | ||
| |
Rakefile | Sun Oct 05 07:35:16 -0700 2008 | |
| |
acts_as_video_fu.gemspec | Sun Mar 15 08:11:12 -0700 2009 | |
| |
init.rb | Sun Dec 14 12:10:36 -0800 2008 | |
| |
install.rb | ||
| |
lib/ | Sun Mar 15 08:11:12 -0700 2009 | |
| |
rails/ | Sun Dec 14 12:10:36 -0800 2008 | |
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
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
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’
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 Video < ActiveRecord::Base
acts_as_video_fu
end
- Show the video’s thumbnail in any view you might like
<%= image_tag thumbnail_url(video) %>
- Add the ‘display_video’ helper to show the full-sized video in any view you might like
<%= display_video(@video) %>
Copyright © 2008 Matt Darby, released under the MIT license












