rails:3603
From: sohara <gggsjp2@g...>
Date: Mon, 15 Aug 2011 22:35:29 +0900
Subject: [rails:3603] Re: Rails3初心者- テーブルをまたいでfind
前島様 ありがとうございます。 maksesでやってみましたが、エラーが表示されました^^; どこか他にご指摘がございましたら、ご教授くださいませ。 @products =Product.find(:all,:include =>:maker, :conditions =>['makers.maker_name like :value or code like :value or name like :value', {:value=> '%' +params[:search_form]+ '%'}]) ActiveRecord::StatementInvalid in ProductsController SQLite3::SQLException: ambiguous column name: created_at: SELECT "products"."id" AS t0_r0, "products"."name" AS t0_r1, "products"."price" AS t0_r2, "products"."created_at" AS t0_r3, "products"."updated_at" ・・・ 曽原 gggsjp2@g...
@ 3599 2011-08-15 11:12 [gggsjp2@g... ] Rails3初心者- テーブルをまたいでfind 3601 2011-08-15 15:24 ┗[netwillnet@g... ] -> @ 3603 2011-08-15 15:35 ┗[gggsjp2@g... ] 3605 2011-08-15 15:54 ┗[netwillnet@g... ] @ 3606 2011-08-15 16:09 ┗[gggsjp2@g... ] @ 3607 2011-08-15 16:35 ┗[kakyoin.hierophant@g] Re: Re: Rails3初心者- テーブルをまたいでfind 3608 2011-08-15 17:08 ┣[netwillnet@g... ] @ 3610 2011-08-15 17:40 ┃┗[gggsjp2@g... ] @ 3611 2011-08-15 18:46 ┃ ┗[kakyoin.hierophant@g] Re: Re: Re: Re: Rails3初心者- テーブルをまたいでfind @ 3612 2011-08-16 04:11 ┃ ┗[gggsjp2@g... ] 3613 2011-08-16 09:26 ┃ ┗[netwillnet@g... ] @ 3614 2011-08-17 06:58 ┃ ┗[gggsjp2@g... ] @ 3609 2011-08-15 17:21 ┗[gggsjp2@g... ]