This project is archived and is in readonly mode.

#5602 ✓resolved
chrisopeterson

Scaffolding with name that ends in "ie" does not create or edit correctly.

Reported by chrisopeterson | September 10th, 2010 @ 12:40 AM | in 3.x

I ran across this problem by using straight out of the box scaffolding.

rails generate scaffold Lie title:string etc...

This will produce the correct scaffolding but any attempts to create or edit Lie objects results in Null database inserts. This is all again, with straight out of the box scaffolding.

SQL (0.5ms) INSERT INTO "lies" ("created_at", "description", "title", "updated_at", "source", "video") VALUES ('2010-09-09 21:45:29.951629', NULL, NULL, '2010-09-09 21:45:29.951629', NULL, NULL)
Redirected to http://localhost:3000/lies/1
Completed 302 Found in 72ms

I tried the same thing with other scaffold names in different rails 3.0 environments and still get the same error. I think it has something to do with the way rails generates the scaffolding names and creates the object @ly throughout the code instead of @lie.

You can get the same problem with any other word that ends in "ie" Calorie for example.
rails generate scaffold Calorie does not work either.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages