##// END OF EJS Templates
Refactor: add VersionsController#status_by to the resource....
Eric Davis -
r3984:5fdfe02b3a3e
parent child
Show More
@@ -5,7 +5,7
5 select_tag('status_by',
5 select_tag('status_by',
6 status_by_options_for_select(criteria),
6 status_by_options_for_select(criteria),
7 :id => 'status_by_select',
7 :id => 'status_by_select',
8 :onchange => remote_function(:url => { :action => :status_by, :id => version },
8 :onchange => remote_function(:url => status_by_project_version_path(version.project, version),
9 :with => "Form.serialize('status_by_form')"))) %>
9 :with => "Form.serialize('status_by_form')"))) %>
10 </legend>
10 </legend>
11 <% if counts.empty? %>
11 <% if counts.empty? %>
@@ -185,7 +185,7 ActionController::Routing::Routes.draw do |map|
185 } do |project|
185 } do |project|
186 project.resource :project_enumerations, :as => 'enumerations', :only => [:update, :destroy]
186 project.resource :project_enumerations, :as => 'enumerations', :only => [:update, :destroy]
187 project.resources :files, :only => [:index, :new, :create]
187 project.resources :files, :only => [:index, :new, :create]
188 project.resources :versions, :collection => {:close_completed => :put}
188 project.resources :versions, :collection => {:close_completed => :put}, :member => {:status_by => :post}
189 end
189 end
190
190
191 # Destroy uses a get request to prompt the user before the actual DELETE request
191 # Destroy uses a get request to prompt the user before the actual DELETE request
General Comments 0
You need to be logged in to leave comments. Login now