On Jueves, 19 de Noviembre de 2009 18:25:51 RVince escribió:
> Why in the following in list view does it permit me to clikc on an
> item in a cell, for, say, channel (corresponding to channel_id) to
> edit the channel when I don;t want that and have specified
> config.actions.exclude :nested
> Similarly, why in edit view, does it allow full editing of the
> belongs_to items? Thanks, R. Vince
nested action is only for nested scaffolds (links in list for plural
associations). It has nothing to do with inline forms (create new and edit
from list) neither with subforms.
>
> class UpsController < ApplicationController
>
> active_scaffold :up do |config|
> config.label = "Ups"
> config.create.columns =
> [:d, :t, :day, :sensor, :heads, :associate, :toedfrom, :cxl, :bb,
> :tor, :dr, :ok, :dayno, :channel, :notes, :date, :time, :customer,
> :origin, :reason, :amount, :closed, :postalcode, :transactioncode,
> :floattime] config.update.columns =
> [:d, :t, :day, :sensor, :heads, :associate, :toedfrom, :cxl, :bb,
> :tor, :dr, :ok, :dayno, :channel, :notes, :date, :time, :customer,
> :origin, :reason, :amount, :closed, :postalcode, :transactioncode,
> :floattime] config.list.columns =
> [:d, :t, :day, :heads, :associate, :toedfrom, :cxl, :bb, :tor, :dr,
> :ok, :dayno, :channel, :transactioncode]
>
> columns.exclude :xref
> list.sorting = [{:channel_id => 'ASC'}, {:d => 'DESC'},
> {:dayno => 'DESC'}]
> config.columns[:associate].form_ui = :select
> config.columns[:origin].form_ui = :select
> config.columns[:reason].form_ui = :select
> config.columns[:d].label = 'Date'
> config.columns[:t].label = 'Time'
> config.columns[:sensor].label = 'Door'
> config.columns[:tor].label = 'TO'
> config.columns[:date].label = 'Date Submitted'
> config.columns[:time].label = 'Time Submitted'
> config.actions.exclude :nested, :create, :delete #, :show
> config.actions.swap :search, :live_search
> 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]. For more options, visit this
> group at http://groups.google.com/group/activescaffold?hl=.
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--
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=.