Routes made compatible with rails 4