Pārlūkot izejas kodu

Make deleted candidate redirect temporary

Just being paranoid
tags/last-sinatra-version
Adrian Short pirms 8 gadiem
vecāks
revīzija
9a1f8d0ad6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app.rb

+ 1
- 1
app.rb Parādīt failu

@@ -202,7 +202,7 @@ end

get '/candidates/:id/?' do
if @deleted_candidate = DeletedCandidate.get(params[:id])
redirect "/candidates/#{@deleted_candidate.candidate_id}", 301 # HTTP 301 Moved Permanently
redirect "/candidates/#{@deleted_candidate.candidate_id}", 302 # HTTP 302 Moved Temporarily
end

if @candidate = Candidate.get(params[:id])


Notiek ielāde…
Atcelt
Saglabāt