title: AngularJS html5mode and rails routes
body: <p>I have followed all the github issues on HTML5Mode breaking Angular apps in 1.5. I am having the same problem but none of the fixes are working for me. </p>
  
  <p>Im doing the following:</p>
  
  <pre><code>&lt;base href="/"&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>get '/*path', :to =&gt; "menus#index"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>app.config(function($routeProvider, $locationProvider) {
   $locationProvider.html5Mode(true);
   .when("/users/:u_id/restaurants/:r_id/menus/:m_id/edit", { templateUrl: "/assets/menus/edit.html", controller: "MenuSectionCtrl" })
   .when("/users/:u_id/restaurants/:r_id/menus/:m_id/sections/:sec_id/items", { templateUrl:   "/assets/menus/items.html", controller: "MenuItemCtrl" })
   .when("/users/:u_id/restaurants/:r_id/menus/:m_id/sections/:sec_id/items/:i_id/option_sections", { templateUrl: "/assets/menus/option_sections.html", controller: "MenuOptionSectionCtrl" })
   .when("/users/:u_id/restaurants/:r_id/menus/:m_id/sections/:sec_id/items/:i_id/option_sections/:op_sec_id/options", { templateUrl: "/assets/menus/options.html", controller:       "MenuOptionCtrl" })
  });
  </code></pre>
  
  <p>I am lost as to what to do next. I have tried every combination of routes and base[href].</p>
  
  <p>Anybody have any ideas?</p>
  
  <p>Also, I have followed this tutorial too. <a href="http://omarriott.com/aux/angularjs-html5-routing-rails/" rel="nofollow">http://omarriott.com/aux/angularjs-html5-routing-rails/</a></p>