2010/5/4 Iñaki Baz Castillo <[email protected]>:
>> Why don't you use client association?
>> #model
>> belongs_to :client
>>
>> #controller
>> config.columns[:client].form_ui = :select
>>
>> Then ActiveScaffold will fill the select with all clients automatically.
>
> Hi, I already tryed it but get always an error (see below the trace)
> when trying list, create or update an entry,

> In CliOutsController I have:
>   config.columns = [:cli, :client_id]
>   config.columns[:client_id].form_ui = :select


Ops, issue found, I should use:

   config.columns = [:cli, :client]
   config.columns[:client].form_ui = :select

This shows the form!
sorry. I'm a bit tired xD


Thanks a lot.

-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to