undefined method `name' for "bookname":String