I’m happily coding through the book (bottom of page 106) and ran into a
NoMethodError in Store#checkout Showing app/views/store/checkout.rhtml where line #22 raised: undefined method `pay_type' for #<Order:0x408ba4d0> Extracted source (around line #22): 19: <td>Pay using:</td> 20: <td><%= 21: options = [["Select a payment option", ""]] +
22: select(“order”, “pay_type”, options)
There is indeed no method of the name “pay_type”, and the book doesn’t
mention it. Actions taken so far:
- I’ve grepped on al downloaded rails-code sources. (not in there)
- Created an empty one in store_controller.rb. (doesn’t seem to notice
- When removing the above mentioned option line I don’t get that error.
definitely the one that causes it).
What am I missing, or lacks in my Rails knowledge?
Thanx a lot for helping out a Rails newby!!
“Who cares if it doesn’t do anything? It was made with our new
Triple-Iso-Bifurcated-Krypton-Gate-MOS process …”
My $Grtz =~ Gerard;