Hi, I ve tried with latest version of activescaffold
Option1 : excluding and afterwards adding should work. At least for me. Option2 : There seems to be a bug, can you please try the following: active_scaffold_config.list.columns = [:image, :name] active_scaffold_config.list.columns.set_columns (active_scaffold_config.columns) Option 3: Weight option cannot be adjusted in per request configuration. Hope that helps. -- Volker On 7 Jan., 17:01, mikev <[email protected]> wrote: > What is the right way to dynamically change the list and update > columns in a :before_filter: > > - active_scaffold_config.list/update.columns.add :a, :b... > and .exclude :c,:d... This causes the column to appear in the wrong > order. > > - active_scaffold_config.config.columns = [:a... AND > config.update.columns = [:b... This doesn't work > > - active_scaffold_config.columns[:a].weight = 0 after setting all > other fields to .weight = 1 This doesn't work > > - Combinations of the above don't work.
-- 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.
