Edited routes.rb

declared the resource