Update app/controllers/announcement_controller.rb

remove shebang active record method