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

1: <h1>New product</h1> 2: 3: <% form_for(@product) do |f| %> 4: <%= f.error_messages %> 5: 6: <p>

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

I am running ruby 1.9.1p243 and rails 2.3.4.

It's a rails bug added in 2.3.4 ( https://rails.lighthouseapp.com/projects/8994/tickets/3144-undefined-method-for-string-ror-234 )

Fred