lib/jw_player/view_helper.rb
def jw_player path, options = {}
      increment_player_count

      options.merge!(flashplayer: "/jwplayer/player.swf", file: path)
      %Q[
<div id="jwplayer_#{@@player_count}">Loading the player...</div>
<script type="text/javascript">
  //<![CDATA[
      jwplayer("jwplayer_#{@@player_count}").setup(#{options.to_json});
  //]]>
</script>
      ].html_safe
    end
# This module contains the view helper <tt>jw_player</tt>
This module contains the view helper jw_player
This module contains the view helper jw_player
def jw_player path, options = {}
      increment_player_count
      options.merge!(flashplayer: "/jwplayer/player.swf", file: path)
      %Q[
<div id="jwplayer_#{@@player_count}">Loading the player...</div>
<script type="text/javascript">
  //<![CDATA[
      jwplayer("jwplayer_#{@@player_count}").setup(#{options.to_json});
  //]]>
</script>
      ].html_safe
    end
def jw_player path , options = { } increment_player_count options . merge! ( flashplayer : "/jwplayer/player.swf" , file : path ) %Q[
<div id="jwplayer_#{@@player_count}">Loading the player...</div>
<script type="text/javascript">
  //<![CDATA[
      jwplayer("jwplayer_#{@@player_count}").setup(#{options.to_json});
  //]]>
</script>
      ] . html_safe end
This module contains the view helper <tt>jw_player</tt>
This module contains the view helper <tt > jw_player< / tt >
path
options