I’ve just started Chapter 6 on Depot. I get to the point where I click New product in the browser and it spits out the following error:
SyntaxError in Products#new
Showing app/views/products/new.html.erb where line #7 raised:
compile error /Users/ben/Desktop/depot/app/views/products/new.html.erb:7: syntax error, unexpected ‘:’, expecting ‘)’ …tput_buffer.concat(( f.label : title ).to_s); @output_buffer… ^ /Users/ben/Desktop/depot/app/views/products/new.html.erb:8: syntax error, unexpected ‘:’, expecting ‘)’ …buffer.concat(( f.text_field : title ).to_s); @output_buffer… ^ Extracted source (around line #7):
4: <%= f.error_messages %>
7: <%= f.label : title %>
8: <%= f.text_field : title %> 9: </p> 10: <p> Trace of template inclusion: app/views/products/new.html.erb
I’ve looked at new.html.erb - there’s not much in there except for the basic form for adding a product. I’m wondering if this is an issue with Rails and Ruby versions?
Rails 2.3.8 Ruby 1.8.7
Any help is appreciated!