Aldeed autoforms messing up

Using the following syntax the thing won’t allow any of the allowed values to insert. I pick a value and it tells me that it’s not an allowed value. Simple as that. I added a label. There’s also the same question on stack overflow : http://stackoverflow.com/questions/35337973/followed-guide-on-scaffolding-with-aldeed-collections-autoforms-all-selects-are

Tried switched out from quickfrom to afFields or something, and that didn’t help, as well as using other opetions like optional, no validation, and options true or something. I’d like it if I could use radio as well if some could pinpoint how it’s done.

{
favoriteColor: {
type: String,
allowedValues: [‘red’, ‘green’, ‘blue’]
}
}

Try this:

favoriteColor: {
  type: String,
  allowedValues: ['red', 'green', 'blue'],
  optional: true,
  autoform: {
    options: function() {
      return [{
        label: 'Red',
        value: 'red'
        },{
        label: 'Green',
        value: 'green'
        },{
        label: 'Blue',
        value: 'blue'
        }      
      ];
    }
  }
}