title: Rails validation page causes a routing error
body: <p>I have a view with the flexigrid component on it. When the view calls the mickey_mouses_controller#new action, the flexigrid component calls mickey_mouses_controller#grid_data action (via localhost:3000/mickey_mouse/grid_data) and returns the relevant json objects correctly.</p>
  
  <p>However, when I submit my view so the ActiveRecord validations fail and renders the view again (mickey_mouses_controller#create action), the flexigrid component is attempting to call the mickey_mouses_controller#grid_data action through localhost:3000/grid_data (instead of localhost:3000/mickey_mouses/grid_data) which is causing the following error.</p>
  
  <blockquote>
    <blockquote>
      <p>No route matches "/grid_data" with {:method=>:post}</p>
    </blockquote>
  </blockquote>
  
  <p>This is what I have in my routes.rb:</p>
  
  <p><code>map.resources :mickey_mouse, :collection =&gt; {:grid_data =&gt; [:get, :post]}</code> </p>
  
  <p>Why is this happening and how can I fix it?</p>
  
  <p>Appreciate any ideas to troubleshoot this and thanks in advance :)</p>