May be cleaner to have one block for `POST` and one for `else`, rather than one here and one 10 lines below. What do you think?