title: Highlighting AND link_to with ruby
body: <p>I currently have an application where I want to highlight some words, and have some stuff happen onclick of those same words. I'm pretty new to programming but have gained a lot of confidence with Ruby, so I'm trying to do all with ruby if I can. I can get it to highlight like this:</p>
  
  <pre><code>&lt;%= highlight(line, @words_to_highlight) %&gt; 
  </code></pre>
  
  <p>and I can get it to link_to like this:</p>
  
  <pre><code>&lt;%= highlight(line, @words_to_highlight) { |match| link_to(match, story_path) }%&gt;
  </code></pre>
  
  <p>My problem is that I can get it to only do one or the other (<code>highlight</code> or <code>link_to</code>), but not both, and so I'd like to know if there's a way to do both.</p>