flowplayer-gem/lib/flowplayer/railties/helper.rb

16 lines
283 B
Ruby
Raw Normal View History

2011-02-01 21:03:28 +00:00
module Flowplayer
module Helper
# flowplayer_for :hubble do |f|
# f.option 'foo'
# f.onLoad do
# 'this.unmute();'
# end
def flowplayer_for(id, swf, &block)
Player.new(id, swf, &block).script_tags.html_safe
end
end
end