I upgraded rails and AS, and cleared my browser's cache and cookies.
Now config_list is displaying the default columns I asked for.  Good!

But I still see no control that would let the user add/remove columns.
There is supposed to be such a control, right?

Any idea what I have to do to let the user add/remove columns while s/
he's looking at the screens?

Lindsay Morris wrote:
> After lots of struggling, I got
>  -- a rails version (2.3.10),
>  -- an activescaffold version (master branch, 9c6c071) and
>  -- a patched version of activescaffoldconfiglist from
> http://github.com/bonefish/active_scaffold_config_list
>
> And now script/server (mongrel) wakes up without errors.
>
> But I don't see anything different on the display.
>
> I made sure to add
>   config.config_list.enabled = true
>   config.config_list.default_columns = [:field1, :field2]
> to my controller.  No change.
>
> I made sure to add a :config_list action in application_controller.rb:
>      config.actions =
> [:list, :config_list, :field_search, :nested, :subform]
> Still no visible effect on my form.
>
> Any ideas?
>
> I know somebody's going to ask to see my whole controller, so here it
> is:
>
> class StgpoolsController < ApplicationController
>   active_scaffold :stgpools do |config|
>     config.list.sorting = { :stgpool_name => :asc }
>    config.columns = [
>         :stgpool_name,:nextstgpool, :description, :devclass,:_devtype, 
> :pooltype,
>         :occupancies, :volumes, :collocate,:cache,:crcdata,
>       
> :est_capacity,:pct_migr,:migr_capacity,:pct_utilized,:util_capacity,:used,:num_volumes,:pct_logical,
>         :trigger_pct_util,:highmig,:lowmig,:migprocess,
>         :maxsize,:access,:ovflocation,:reclaim,
>         :maxscratch,:numscratchused,:reusedelay,
> #:migr_running,
> #:migr_mb,
> #:migr_seconds,
> #:recl_running,
>   :reclaimprocess,:reclaimstgpool,:reclamationtype,:offsiterclmlimit,
>   :migdelay,:migcontinue,:copycontinue,
>   :dataformat,:copystgpools,:activedatastgpools,:shred_count,
>   ]
>   config.config_list.enabled = true
>   config.config_list.default_columns =
> [:stgpool_name,:nextstgpool, :description, :devclass,:_devtype, :pooltype,
>   :occupancies, :volumes, :collocate,:cache,:crcdata,
>   :est_capacity,:pct_migr,:migr_capacity,:pct_utilized,:util_capacity,:used]
>   config.field_search.columns =
> [:stgpool_name, :nextstgpool, :description,:pooltype, 
> :devclass,:collocate,:cache, :access,:ovflocation ]
>   config.columns[:_devtype].includes = [:devclass]
>   config.columns[:_devtype].label = "Devtype"
>   config.columns[:_devtype].sort = "true"
>   config.columns[:_devtype].sort_by :sql =>
> 'devclasses.devclass_name'
>   config.columns[:used].sort = "true"
>   config.columns[:used].sort_by :sql => 'logical_mb'
>
>   end
> end

-- 
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