title: Route helpers in asset pipeline
body: <p>using Rails 3.1.0.rc4, I'm trying to access a route helper in a javascript file (event.js.erb in this case) and it seems like they are not loaded at that moment. When requesting the merged /assets/application.js file, I get:</p>
  
  <pre><code>throw Error("NameError: undefined local variable or method `events_path' for #&lt;#&lt;Class:0x00000001580010&gt;:0x00000003191510&gt;\n  (in /&lt;...&gt;/app/assets/javascripts/event.js.erb)")
  </code></pre>
  
  <p>Any idea how to access the route helper in there?</p>