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