我不断收到此错误,但它清楚地表明该方法已定义。
undefined method `customer_ID' for Order(id: string, order_date: string, customer_ID: string):Class
Extracted source (around line #23):
20: @orderlines= Orderline.find(:all)
21:
22: # copy each field into a variable for display
23: @id= Order.customer_ID
24: # @date= Order.order_date
25: %>
26: <h1>Showing all orders</h1>
RAILS_ROOT: /mounts/u-zon-d2/ugrad/jdpa227/rails1