El martes, 31 de enero de 2017 23:26:00 (CET) Chee Chong Hwa escribió:
> Hi Sergio
>
> This does not work as all these 3 columns are displayed. Yes, I did stop and
> restart server
>
> # config/initializers/active_scaffold.rbActiveScaffold.set_defaults do
> |config| config.ignore_columns.add [:created_at, :updated_at,
> :lock_version]end
>
> This also doe s not work
>
> class EmployeesController < ApplicationController
> active_scaffold :"employee" do |conf|
> config.columns[:payins].form_ui = :select
> # config.label = "Customers"
> config.columns = [:eno, :ename, :dept, :date_join, :active, :memo]
> list.columns.exclude :memo
> list.sorting = {:ename => 'ASC'}
> end
> end
>
>
> All columns shown in AS alphabetically
>
> Am I missing something ?
>
>
> TIA
No column which is not present in config.columns should be displayed. Do you
have some method in EmployeesController or ApplicationController changing list
columns?
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.