Update articles_controller.rb

Refactor