title: Ruby condition within HAML and Javascript
body: <p>Here is my best attempt that does not work:</p>
  
  <pre><code>:javascript
    $(document).ready(function(){
    - if params[:filtered] == "a"
    highlightLink(0);
    - elsif params[:filtered] == "b"
    highlightLink(1); 
    - elsif params[:filtered] == "c"
    highlightLink(2);  
    });  
  </code></pre>
  
  <p>What should I do so that my above attempt works?</p>