Refactor post /todos/new route on main.rb