Add post todo/:id/delete route on main.rb file. Change action for delete task button on todo.erb file.