I see config.actions.add :list commented, why is commented? or why did you need
it? did you remove list action with ActiveScaffold.set_defaults?
El miércoles, 1 de febrero de 2017 16:11:48 (CET) Gloufy escribió:
> Hi,
>
> I do a bundle update and now I have this :
>
>
> List is not enabled. Please enable it or remove any references in your
> configuration (e.g. config.list.columns = [...]).
>
> Extracted source (around line *#1*):
>
> 1
>
>
> = render :active_scaffold => "commun/sports"
>
>
> This is the configuration
>
> class Commun::SportsController < ApplicationController
>
> before_action :authenticate_user!
>
>
> active_scaffold :per_sport do |config|
>
> config.create.label ="Ajouter un sport"
>
> config.update.label ="Modifier un sport"
>
> #config.list.label="Sports"
>
>
> config.actions.exclude :search
>
> # config.actions.add :list
>
> config.show.link =false
>
> config.columns[:niveau].options={:options=>NIVEAU_SPORT.map}
>
> config.columns[:niveau].form_ui= :select
>
> config.columns[:sport].form_ui = :chosen
>
> config.columns=[:sport,:niveau]
>
> end
>
>
> def conditions_for_collection
>
> ['per_id IN (?)', current_user.tous_les_ids]
>
> end
>
> protected
>
>
> end
--
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.