Rails scaffolding for test generating curious attributes for test fixtures

12 Views Asked by At

When using rails scaffolding

rails g Somemodel nation:references

the fixtures automatically generated in the test directory take this form

one:
  nation: one

why is that? the datatype is an integer and the attribute is nation_id.

0

There are 0 best solutions below