ありがとうページを作成しようとしています。URLをテストして正常に機能するため、このルートは正常に機能しますが、作成アクションでリダイレクトしようとすると、次のようになります。
Routing Error
No route matches {:action=>"thank_you", :locale=>:en, :controller=>"appointments"}
コントローラ
  def create
    @appointment = Appointment.new(params[:appointment])
      if @appointment.save
        #send email
        AppointmentMailer.appointment_confirmation(@appointment).deliver
        AppointmentMailer.new_appointment(@appointment).deliver
        redirect_to :action => "thank_you"
      else
        render :action => 'new', :alert => @appointment.errors.full_messages.split(', ')
      end
  end
  def thank_you
      @appointment = Appointment.find(params[:id])
  end
ルート
resources :appointments, :except => :new do
      member do
        get :thank_you
      end
    end