私は GuestOrder という名前のモデルを持っています:
class GuestOrder < ActiveRecord::Base
end
# == Schema Information
#
# Table name: guest_orders
#
# id :integer not null, primary key
# notes :string(255)
# adults :integer
# children :integer
# created :datetime
# placed :datetime
# billed :datetime
# user_id :integer
# guest_table_id :integer
# take_away_id :integer
# created_at :datetime
# updated_at :datetime
GuestOrdersどこにあるかを取得するbilledとnilうまくいきます:
GuestOrder.where(billed: nil)
しかし、どこにあるのかを取得するGuestOrdersにbilledはどうすればよいnot nilですか?