Have a look to fixtures docs, you can do somehting like:
men.yml
man_one:
name: ManOne
man_two:
name: ManTwo
items.yml
item_one:
name: ItemOne
man: man_one
item_two:
name: ItemTwo
man: man_one
item_three:
name: ItemThree
man: man_two
Update
It seems you don't have the man_id
in the table column
. You should create a migration to do so:
rails g migration AddManIdToItem man_id:integer
and run the migration: bundle exec rake db:migrate