Revision 13997
Added by Jean-Philippe Lang over 10 years ago
routes.rb | ||
---|---|---|
112 | 112 | |
113 | 113 |
get 'issues/:copy_from/copy', :to => 'issues#new', :as => 'copy_issue' |
114 | 114 |
resources :issues, :only => [:index, :new, :create] |
115 |
# issue form update
|
|
116 |
match 'issues/update_form', :controller => 'issues', :action => 'update_form', :via => [:put, :patch, :post], :as => 'issue_form'
|
|
115 |
# Used when updating the form of a new issue
|
|
116 |
post 'issues/new', :to => 'issues#new'
|
|
117 | 117 | |
118 | 118 |
resources :files, :only => [:index, :new, :create] |
119 | 119 | |
... | ... | |
168 | 168 |
end |
169 | 169 | |
170 | 170 |
resources :issues do |
171 |
member do |
|
172 |
# Used when updating the form of an existing issue |
|
173 |
patch 'edit', :to => 'issues#edit' |
|
174 |
end |
|
171 | 175 |
collection do |
172 | 176 |
match 'bulk_edit', :via => [:get, :post] |
173 | 177 |
post 'bulk_update' |
Also available in: Unified diff
Removed IssuesController#update_form action, use #new and #edit instead.