Update contents_controller.rb