Update routes.rb

Fix to routes compatibility with rails4