Hi,
form_ui = :select is totally right.
depreciation warning is just informing you that you should restructure
your option hash for this column.
form_ui :select finally calls rails helper: select(object, method,
choices, options = {}, html_options = {}) .
To distinguish html_options from "normal" options you have to separate
them:
config.columns[:column_name].options = {:html_options => {:onchange =>
"alert('hi')"}}
--
Volker
On 13 Nov., 01:03, Soren <[email protected]> wrote:
> From the Nov 12 code on github:
>
> ActiveScaffold: Setting html options directly in a hash is deprecated
> for :select form_ui. Set the html options hash under html_options key,
> such as config.columns[:column_name].options = {:html_options =>
> {...}, ...}
>
> Is this not the right way to set the form_ui for a particular column ?
>
> config.columns[:user].form_ui = :select
>
> /S
--
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].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=.