Update older model of routing to Rails 4.

This might be over the top (as in, I haven’t checked whether GET or
POST or either is fine…)