title: Range inside switch case statement in Coffeescript
body: <p>I am using Handlebar in my Rails 3.2 jquery  mobile application.</p>
  
  <p>I am trying to write a switch case statement inside a Coffeescript method like</p>
  
  <pre><code>Handlebars.registerHelper 'status', (blog) -&gt;
    switch(parseInt(blog.status))
      when [0..20]
        status = "active"
      when [20..40]
        status = "Moderately Active"
      when [40..60]
        status = "Very Active"
      when [60..100]
        status = "Hyper Active"
    return status
  </code></pre>
  
  <p>I am not getting any result . How to use range in when . Please suggest</p>