Search⌘ K

Challenge Solution: Reset Password

Explore the detailed solution to the reset password challenge in Ruby on Rails. Understand how to write feature tests that simulate user actions, verify email delivery, and use Devise paths effectively for password reset flows.

Let's look at the solution to the challenge.

Bud1  Ilg1Scomp @� @� @� @I.gitlg1ScompK�.gitmoDDblob�K�A.gitmodDblob�K�A.gitph1ScompappIlocblob;(������applg1Scomp*�appmoDDblob�K�AappmodDblob�K�Aappph1Scomp�binIlocblob�(������binlg1Scomp�binmoDDblob�K�AbinmodDblob�K�Abinph1Scomp0configIlocblob(������configlg1Scomp�
configmoDDblob�V�AconfigmodDblob�V�Aconfigph1Scomp�	config.ruIlocblob�(������dbIlocblob�(������dblg1ScompO�dbmoDDblob��\�AdbmodDblob��\�Adbph1Scomp�featuresIlocbloba(������featureslg1Scomp,�featuresmoDDblob
n�AfeaturesmodDblob
n�Afeaturesph1ScompPGemfileIlocblob;�������Gemfile.lockIlocblob��������libIlocblob�������liblg1Scomp	TlibmoDDblob�K�AlibmodDblob�K�Alibph1ScomplogIlocblob��������loglg1ScompT%logmoDDblob�jh�AlogmodDblob�jh�Alogph1Scomp`publicIlocblob��������publiclg1Scomp)publicmoDDblob�K�ApublicmodDblob�K�Apublicph1Scomp@RakefileIlocbloba�������	README.mdIlocblob;������scriptIlocblob�������scriptlg1ScompOscriptmoDDblobKL�AscriptmodDblobKL�Ascriptph1ScompstorageIlocblob������storagebwspblob�bplist00�


]ShowStatusBar[ShowPathbar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar		_{{322, 268}, {1136, 674}}	%1=I`myz{|}~��storagelg1ScompstoragemoDDblob�K�AstoragemodDblob�K�Astorageph1ScompstoragevSrnlongtmpIlocblob�������tmpbwspblob�bplist00�


]ShowStatusBar[ShowPathbar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar		_{{322, 268}, {1136, 674}}	%1=I`myz{|}~��tmplg1Scomp�njtmpmoDDblob�K�AtmpmodDblob�K�Atmpph1Scomp] tmpvSrnlongvendorIlocblob�������vendorlg1ScompvendormoDDblob�K�AvendormodDblob�K�Avendorph1Scomp EDSDB `�(0@� @� @�������loglg1ScompT%logmoDDblob�jh�AlogmodDblob�jh�Alogph1Scomp`publicIlocblob��������publiclg1Scomp)publicmoDDblob�K�ApublicmodDblob�K�Apublicph1Scomp@RakefileIlocbloba�������	README.mdIlocblob;������scriptIlocblob�������scriptlg1ScompOscriptmoDDblobKL�AscriptmodDblobKL�Ascriptph1ScompstorageIlocblob������storagebwspblob�bplist00�


]ShowStatusBar[ShowPathbar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[Show
Solution for the reset password challenge

Explanation

Let's break down the solution implemented above.

Define the scenario

We make the following change to features/forgot_password.feature:

  • Lines 6–11: We define the steps for our test scenario. ...