diff --git a/app/views/versions/_issue_counts.rhtml b/app/views/versions/_issue_counts.rhtml
index 4bab5c65911e73d5e22c5e96bec06aced869c451..38f3edbcbe6a1876ef50a28e0ec6d6af2f1b8647 100644
--- a/app/views/versions/_issue_counts.rhtml
+++ b/app/views/versions/_issue_counts.rhtml
@@ -5,7 +5,7 @@
        select_tag('status_by',
                    status_by_options_for_select(criteria),
                    :id => 'status_by_select',
-                   :onchange => remote_function(:url => { :action => :status_by, :id => version },
+                   :onchange => remote_function(:url => status_by_project_version_path(version.project, version),
                                                 :with => "Form.serialize('status_by_form')"))) %>
 </legend>
 <% if counts.empty? %>
diff --git a/config/routes.rb b/config/routes.rb
index 00a2c360850b95b5a5985242fe7d99c93d6a2aa8..062bb586e610e0fbbf35f6725feaccbd83973c9b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -185,7 +185,7 @@ ActionController::Routing::Routes.draw do |map|
   } do |project|
     project.resource :project_enumerations, :as => 'enumerations', :only => [:update, :destroy]
     project.resources :files, :only => [:index, :new, :create]
-    project.resources :versions, :collection => {:close_completed => :put}
+    project.resources :versions, :collection => {:close_completed => :put}, :member => {:status_by => :post}
   end
 
   # Destroy uses a get request to prompt the user before the actual DELETE request