Topic: Problems following Agile Web Development with Rails
Hi guys,
I have the 3.1 edition of AWDWR, I've been following along correctly and I'm only a very short way into the book actually page 75/76 where they're demonstrating how to edit the index.html.erb view for products... Basically, it's a simple case of me reading and understanding what they're showing me (which of course I do) and then writing the code into my text editor myself.
I do that, double check it and go into my console and type rails s
I go into chrome and load up localhost:3000/products but what I get is this;
C:/Users/Win7/Desktop/Agile/depot/app/views/products/index.html.erb:25: syntax error, unexpected keyword_end, expecting ')'
'); end
^
C:/Users/Win7/Desktop/Agile/depot/app/views/products/index.html.erb:32: syntax error, unexpected keyword_ensure, expecting ')'
C:/Users/Win7/Desktop/Agile/depot/app/views/products/index.html.erb:34: syntax error, unexpected keyword_end, expecting ')'
It's trying to tell me that the <% end %> shouldn't be there, which makes absolutely no sense. Have any of you experienced this problem following the book?