class PeopleController < ApplicationController
  def show
    @person = Person.friendly_find(params)
  end

  def redirect_show
    person = Person.find_by(name: params[:name_slug].gsub('_', ' '))
    if person
      redirect_to person_url(id: person.id, slug: person.slug), status: 301
    else
      fail ActiveRecord::RecordNotFound
    end
  end
end

class PeopleController < ApplicationController
  def show
    @person = Person.friendly_find(params)
  end

  def redirect_show
    person = Person.find_by(name: params[:name_slug].gsub('_', ' '))
    if person
      redirect_to person.friendly_path, status: 301
    else
      fail ActiveRecord::RecordNotFound
    end
  end
end

Fix for the 2010-era candidate url people redirect.
Fix for the 2010-era candidate url people redirect.
