Closed GoogleCodeExporter closed 9 years ago
Hi Greg,
Where are you using the config.ignore_columns setting? This is actually meant
to be a
global setting, not local. I just tweaked the Getting Started doc to try and
make
that a bit more obvious.
Original comment by cainl...@gmail.com
on 11 May 2007 at 9:31
class UsersController < ApplicationController
# Be sure to include AuthenticationSystem in Application Controller instead
layout 'admin'
active_scaffold do |config|
# config.theme = :blue
# config.ignore_columns = [:created_at, :updated_at]
config.columns = [:login, :email, :roles]
end
end
Not sure what do you mean global/local. Is there any description?
Thanks
Original comment by greg.but...@gmail.com
on 13 May 2007 at 4:48
Global settings are usually set in the ApplicationController, and apply to all
scaffolds in the entire application.
The ignore_columns setting is intended to remove some special columns that you
may
have in your database schema. For example, if you consistently use "inserted_at"
instead of "created_at" you may want to put that in the ignore_columns array.
If you want to ignore columns on a specific controller, please use the
config.#{action}.columns.exclude method instead. For example,
"config.list.columns.exclude :created_at, :updated_at".
Original comment by cainl...@gmail.com
on 13 May 2007 at 6:16
Original issue reported on code.google.com by
greg.but...@gmail.com
on 11 May 2007 at 8:16