I am running ruby 1.9.1p243 and rails 2.3.4.
after generating scaffold code via:
ruby script/generate scaffold Product
I go to the products page and click on “new product” and I get the
following error:
NoMethodError in Products#new
Showing app/views/products/new.html.erb where line #3 raised:
undefined method `^’ for “c”:String
Extracted source (around line #3):
1:
New product
2:
3: <% form_for(@product) do |f| %>
4: <%= f.error_messages %>
5:
6:
Any idea how I can get it to generate scaffold code that works?