Main_routes index method encountered an error. 'dict object' has no attribute 'price'