title: Rails print ruby string in haml code
body: <p>Hey I am fairly new to web programming, so please excuse my ignorance.
  I have the following code in a .html.haml view file.</p>
  
  <pre><code>%video{:controls =&gt; "controls", :height =&gt; "240", :width =&gt; "320"}
    %source{:src =&gt; @video_resource.file_path, :type =&gt; "video/mp4"}/
    %source{:src =&gt; @video_resource.file_path, :type =&gt; "video/webm"}/
    %source{:src =&gt; @video_resource.file_path, :type =&gt; "video/ogg"}/
    %object{:data =&gt; "flashmediaelement.swf", :height =&gt; "240", :type =&gt; "application/x-shockwave-flash", :width =&gt; "320"}
      %param{:name =&gt; "movie", :value =&gt; "flashmediaelement.swf"}/
      %param{:name =&gt; "flashvars", :value =&gt; "controls=true&amp;file=movie.url"}/
    = t('html5_video_error')
  </code></pre>
  
  <p>How do I get @video_resource.file_path into the flashvars object param file variable (currently it is set to movie.url). I may be misunderstanding the way this works.  </p>