fixed post index view - converted to erb