Added resource code to config/routes.rb