Depot Application SyntaxError
21 Jan 2013, 18:57
Colin L (1 post)
Hi I have just bought the book and was starting with the depot application.
I am just running it for the first time after running ‘rails server’ command
SyntaxError in ProductsController#index
/Users/colinlambert/Desktop/depot/app/models/product.rb:2: syntax error, unexpected ’:’, expecting keyword_end
attr_accessible : title, :description, :image_url, :price
Application Trace | Framework Trace | Full Trace
Show env dump
28 Jan 2013, 02:59
Adrian Lee Elder (9 posts)
Could you post the contents of your product.rb and ProductsController.rb?
At first glance it looks like a type o when generating the Product scaffolding. Try rails destroy Product, and retyping out the command.
|You must be logged in to comment|