Gestion des anciennes url pour éditer un evt
This commit is contained in:
parent
4f020996a7
commit
0b4faa6a74
@ -25,6 +25,9 @@ Rails.application.routes.draw do
|
|||||||
# Manage former php pages
|
# Manage former php pages
|
||||||
get 'showevent.php', to: redirect { |_, req| "events/#{req.params[:id]}" }
|
get 'showevent.php', to: redirect { |_, req| "events/#{req.params[:id]}" }
|
||||||
get 'listevents.php', to: redirect { |_, req| "events?#{req.query_string}" }
|
get 'listevents.php', to: redirect { |_, req| "events?#{req.query_string}" }
|
||||||
|
get 'editevent.php', to: redirect(lambda do |_, req|
|
||||||
|
"events/#{req.params[:id]}/edit?secret=#{req.params[:secret]}"
|
||||||
|
end)
|
||||||
# A mechanism to list "all" events
|
# A mechanism to list "all" events
|
||||||
get '(:format)listevents.php',
|
get '(:format)listevents.php',
|
||||||
to: redirect { |_, r| "events.#{r.format.to_sym}?#{r.query_string}" }
|
to: redirect { |_, r| "events.#{r.format.to_sym}?#{r.query_string}" }
|
||||||
|
Loading…
Reference in New Issue
Block a user