Add get /contacts/:id/edit route. Define edit action in contacts_controller.rb file. Create edit.html.erb file within contacts views.