Fix build errors

- The int foo in the create action will need to be replaced with the
model once the model has been defined.