Update directories_controller.rb