Update entities_controller.rb