Copied routes from wagn rails app. Need to update to rails 4.