Move a route inside a collection block
This commit is contained in:
parent
4d41381155
commit
cd22a9742e
1 changed files with 6 additions and 3 deletions
|
@ -247,10 +247,13 @@ Rails.application.routes.draw do
|
||||||
post 'ask_deletion'
|
post 'ask_deletion'
|
||||||
get 'attestation'
|
get 'attestation'
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
collection do
|
||||||
# FIXME: to remove when show is implemeted
|
# FIXME: to remove when show is implemeted
|
||||||
# needed to fix refresh after dossier draft save
|
# needed to fix refresh after dossier draft save
|
||||||
get 'dossiers/:id', to: redirect('/dossiers/%{id}/modifier')
|
get ':id', to: redirect('/dossiers/%{id}/modifier')
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
scope module: 'new_gestionnaire', as: 'gestionnaire' do
|
scope module: 'new_gestionnaire', as: 'gestionnaire' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue