fixes rails deprecation warning about :to in routes

@Dantemss this makes the error go away (one of several gems), but I didn't test that it still does what it is supposed to do.