You don't need `respond_to` unless a single action must respond to multiple formats -- this block could just be replaced with `render json: @countries`