Generated scaffold code giving an error

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):


New product

3: <% form_for(@product) do |f| %>
4: <%= f.error_messages %>

Any idea how I can get it to generate scaffold code that works?

On Sep 14, 1:00 am, bradleylandis [email protected]

I am running ruby 1.9.1p243 and rails 2.3.4.

It’s a rails bug added in 2.3.4 (


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs