Dan, Akelos scaffolds does not create view code for associations. It might be too much guessing to know which form field type and columns to show.
In Akelos you can simply do something like
<%= collection_select 'link', 'linkcategory', Link.linkcategories, 'id', 'name' %>
Hi there,
The code Bermi gave as an example is a FormOptionsHelper that you can use in the view. It will generate a html <select> list.
No wait.. for the example above you do need one more thing: the list with linkcategories should be in Link.linkcategories, and for that to work you should have called:
$this->Link->linkcategory->load();
in your controller.
Another way to do it is to include a finder in the code in the view:
<?=$form_options_helper->select('link','linkcategory_id',$linkcategory->collect($linkcategory->find(),'name','id'));?>
Dan you can also add the include option on your finders like
$this->link->find('all', array('include'=>'linkcategories'));
BTW 4 spaces to indent blocks in markdown ;)
1 to 9 of 9