Update resources_controller.rb