#48

New

Error when generating scaffold - possible pluralization problem

Reported by railsguru on Ajax Scaffold · 12/09/2006 13:33:31

Assigned to:
Nobody
Priority:
Normal
Status:
New
Category:
None
Version:
3.1.5

I have a database with 2 tables:

Honorific
Suffix

both with an identical structure of id integer and name varchar(255)

The procedure below works fine for Honorific but produces an error for Suffix:

1. rails testscaf
2. cd testscaf
3. change config/database.yml to match my db and start webrick
4. ruby script/generate ajax_scaffold Honorific (works fine)
5. ruby script/generate ajax_scaffold Suffix (causes the error below)

The error is:
exists test/unit/
exists test/fixtures/
exists app/controllers/
exists app/helpers/
create app/views/suffixes
exists app/views/layouts/
exists public/images
exists test/functional/
create app/models/suffix.rb
create test/unit/suffix_test.rb
create test/fixtures/suffixes.yml
You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.column_for_attribute

Attachments Upload

No attachment has been uploaded, yet.


Loading comments...