Oh right, I guess only controllers have the render_flash_messages method. I'll remove it now.