title: How to integrate Rails views with angularjs ng-view?
body: <p>I have created rails view (ERB). However, I want to integrate it into angularjs <code>$routeProvider</code>, but I don't know what url should I fill into <code>templateUrl</code> to give me the appropriate rails view. For example, I tried:</p>
  
  <pre><code>$routeProvider.when('/pages/foo', {
  templateUrl: "/pages/foo",                  
  controller: "PageFoo"
                  })
  </code></pre>
  
  <p>But the result appears as a blank page.
  Are the two features even integrateable? Or do I have to create new <code>.html</code> files, instead of using preexisting <code>.html.erb</code></p>