moved repeated code for displaying list of rants to a partial.