fixed bug in rants_controller