css and active record sub