Creating scaffolding with references does not work

Bug #660290 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rootin Tootin
Fix Released
Critical
Unassigned

Bug Description

If I try to create a simple app with one model referencing another, it fails. The generator does not understand "reference", and the generated CRUD template is wrong.

Try this to get the errors:

rootintootin name:blog port:3000 db_user:root db_password:letmein
cd blog
./gen recreate development database

./gen create noun singular:post plural:posts
./gen create noun singular:comment plural:comments

./gen create scaffold post title:unique_string content:text \
validates presence_of:title,content

./gen create scaffold comment content:text post:reference \
validates presence_of:content

./gen migrate development
./run development

Matt Jones (workhorsy)
Changed in rester:
status: Confirmed → Fix Committed
Matt Jones (workhorsy)
Changed in rester:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.