Update app/controllers/rules_controller.rb