Fixed deprecation warnings for rails 4.2 routing