Avoid a deprecation warning in Rails 4.2

The deprecation is triggered by passing string keys for controller or
action to the url helper.
Yes, at first I wrote this code to transform the string keys into symbols, but then I realized that it shouldn't need :action or :controller.  The code to exclude them completely was a lot simpler than the code to transform them.