flowplayer-gem/lib/flowplayer/railties/helper.rb
2011-02-01 16:03:28 -05:00

16 lines
283 B
Ruby

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