bugfix: route definitions in rails 4

Rails 4 dose not support `match` any more