getting undefined method asset error