Change datetime to string for due_date column in todos table in migration file. Add get /todos/:id route. Define show action in todos_controller.rb file. Create show.html.erb file and display details of a todo.