Which of those lines is #11? I don't see immediately any obvious bad
chars in what you posted, but perhaps that's due in part to the email
processing. Have you tried deleting and retyping that line?
I get this Error message in my browser
�SyntaxError in ProductsController#index
/Users/musdev/work/depot/app/models/product.rb:11: Invalid char `\x1B'
in expression
The code in my product.rb file
Which of those lines is #11? I don't see immediately any obvious bad
chars in what you posted, but perhaps that's due in part to the email
processing. Have you tried deleting and retyping that line?
Showing app/views/products/index.html.erb where line #6 raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each
Extracted source (around line #6):
3:
4: <table>
5:
6: <% @products.each do |product| %>
Seems pretty obvious... @products is nil. That issue is in your
controller.
lol thanks, I was about to take the sucker way out and start over, but
how will I ever learn. I just created a new Product.new object in my
controller and stored it in @products.