我有一个动作控制器URL生成错误,以下内容:classProduitsController这里是index.html.erb—1+然后,我有以下错误消息:ActionController::UrlGenerationErrorinProduits#indexNoroutematches{:action=>"show",:controller=>"produits",:id=>nil}missingrequiredkeys:[:id]这是routes.rb:Rails.application.routes.drawdomatch"/mon-panier"=>'carts#index',via::
我收到405:MethodNotAllowed,所以问题出在哪里,这是一个post方法,因为我想向服务器发送数据classVendreHandler(BaseHandler):@tornado.web.authenticateddefpost(self):self.db=conn["essog"]user=self.get_secure_cookie("mechtari")info=tornado.escape.json_decode(user)email=info["email"]namep=self.get_argument("namep")prix=self.get_argume
我想做的是这样的:INSERTINTOLIVRE(id_livre,id_client,id_produit)VALUES(null,SELECTid_clientfromCLIENTwheredistributeurlike"%Traffic%",SELECTid_produitfromPRODUITwherenum_serie_produit=1401000);1SELECT有可能吗?我试过类似的东西:INSERTINTOLIVRE(id_livre,id_client,id_produit)SELECTnull,C.id_client,P.id_produitFROMLIVRE,
我没有找到任何相关信息。这是我的查询:SELECTp.*,pa.*,a.*FROMproduitpLEFTOUTERJOINproduit_attributpaONp.id=pa.id_produitLEFTOUTERJOINattributaONa.id=pa.id_attributORDERBYp.id,a.id;但问题是它返回列withthesamename:+----+------------+-----+------------+-------------+------+-----+----+----+|id|titre|desc|id_produit|id_attribut