Refactor routes in order to be compatible with Rails 4