firstdraft / draft_generators

Rails generators that help beginners learn to program.
MIT License
2 stars 3 forks source link

Change label text for foreign key columns to include ID #117

Open jelaniwoods opened 1 year ago

jelaniwoods commented 1 year ago

I've noticed this previously, but especially this quarter that when working on final projects students are confused about why "the generated form doesn't work". In the cases I've seen the issue is always because one of the fields is a foreign key column and either they remove the field or they fill it out with the name of the associated table and not the ID.

Perhaps changing the label text to include ID will help it be more clear that they should enter an ID?

We could also add the required HTML attribute, but that might not always be relevant.