I have been following the tutorial in the book step by step and I got tripped up somewhere when developing my checkout for the cart. When I hit my “check out” button this is the message I get: ________________________________
undefined method `pay_type’ for #
Extracted source (around line #27):
24: <p> 25: <%= label :order, :pay_type, “Pay with:” %> 26: <%= 27: form.select :pay_type, 28: Order::PAYMENT_TYPES, 29: :prompt => “Select a payment method” 30: %>
I have gone back and double checked the code with the book, but I can not seem to find my error.