Sure!
class UsersController < ApplicationController
include ERB::Util # to get the h function loaded
layout "default", :except => [ :create2, :new2, :forgot_password ,
:reset_password]
# Protect these actions behind an admin login
before_filter :admin_required, :only => [:suspend, :unsuspend, :su,
:destroy, :purge]
before_filter :login_required
skip_before_filter :login_required, :only => [:new2, :create2,
:activate, :forgot_password, :reset_password]
# This is the hook for Active Scaffold to dynamically modify the list
of columns.
before_filter :update_table_config
active_scaffold :user do |config|
#config.columns = [:login, :first_name, :last_name, :address, :city,
:zip, :email, :home_phone, :cell_phone, :work_phone]
config.columns.exclude :updated_at, :created_at
# Config adds the password columns
config.create.columns = [:login, :first_name, :last_name, :address,
:city, :zip, :email, :home_phone, :cell_phone, :work_phone, :password,
:password_confirmation]
config.show.columns = [:first_name, :last_name, :address, :city,
:zip, :email, :home_phone, :cell_phone, :spouse_first_name,
:spouse_last_name, :spouse_address, :spouse_city, :spouse_zip,
:spouse_email, :spouse_home_phone, :spouse_cell_phone, :spouse_work_phone]
config.list.columns = [:login, :state, :first_name, :last_name,
:spouse_first_name, :spouse_last_name, :address, :city, :zip, :email,
:home_phone, :cell_phone, :spouse_work_phone]
config.update.columns = [:first_name, :last_name, :address, :city,
:zip, :email, :home_phone, :cell_phone, :work_phone, :spouse_first_name,
:spouse_last_name, :spouse_address, :spouse_city, :spouse_zip,
:spouse_home_phone, :spouse_cell_phone, :spouse_work_phone, :spouse_email]
config.list.always_show_search = true
config.actions.swap :search, :live_search
config.list.sorting = [{ :last_name => :asc}, {:first_name => :asc}]
config.columns[:home_phone].description =
"Please just enter 10 digits, no spaces, dashes(-), nor ()"
config.columns[:cell_phone].description =
"Please just enter 10 digits, no spaces, dashes(-), nor ()"
config.columns[:work_phone].description =
"Please just enter 10 digits, no spaces, dashes(-), nor ()"
config.columns[:first_name].description =
"Please enter data as you want it printed on Forms,
Directories etc"
config.columns[:last_name].description =
"Please enter data as you want it printed on Forms,
Directories etc"
config.columns[:address].description =
"Please enter data as you want it printed on Forms,
Directories etc"
config.columns[:city].description =
"Please enter data as you want it printed on Forms,
Directories etc"
config.columns[:spouse_last_name].description =
"Please enter data as you want it printed on Forms,
Directories etc"
config.columns[:spouse_first_name].description =
"Please enter data as you want it printed on Forms,
Directories etc"
config.columns[:spouse_home_phone].description =
"Please just enter 10 digits, no spaces, dashes(-), nor ()"
config.columns[:spouse_cell_phone].description =
"Please just enter 10 digits, no spaces, dashes(-), nor ()"
config.columns[:spouse_work_phone].description =
"Please just enter 10 digits, no spaces, dashes(-), nor ()"
config.columns[:spouse_address].description =
"Please enter data as you want it printed on Forms,
Directories etc"
config.columns[:spouse_city].description =
"Please enter data as you want it printed on Forms,
Directories etc"
list.per_page = 50
config.action_links.add 'activation',
:label => "Activate",
:type => :record,
:inline => false,
:security_method => :activation_authorized?
config.action_links.add 'respw',
:label => "Reset Password",
:type => :record,
:inline => false,
:security_method => :respw_authorized?
config.action_links.add 'admin_suspend',
:label => "Suspend",
:type => :record,
:inline => false,
:security_method => :activation_authorized?
config.action_links.add 'admin_unsuspend',
:label => "Un-suspend",
:type => :record,
:inline => false,
:security_method => :activation_authorized?
config.action_links.add 'su',
:label => "Su",
:type => :record,
:inline => false,
:security_method => :activation_authorized?,
:confirm => false
config.action_links.add 'pf',
:label => "PF",
:type => :record,
:inline => false,
:security_method => :pf_authorized?,
:confirm => false
end
def update_table_config
if not current_user.nil?
if !current_user.has_role?('user')
active_scaffold_config.list.columns.exclude :login, :state, :roles
if current_user.has_role?('admin')
active_scaffold_config.list.columns.add :login, :state, :roles
active_scaffold_config.update.columns.add :roles
else
active_scaffold_config.update.columns.exclude :roles
end
else
active_scaffold_config.list.columns.exclude :login, :state, :roles
end
end
end
I have some additional methods in there to support the
restful_authentication plugin etc.
They are likely all just the standard stuff. Let me know if we want
those too.
/S
Kenny Ortmann wrote:
can you paste the entire users_controller please?
On Tue, Feb 2, 2010 at 10:43 AM, Soren Christensen <[email protected]
<mailto:[email protected]>> wrote:
Noted that there was some problem with my config.columns
They looked like this:
config.columns.exclude :updated_at, :created_at
config.create.columns = [:login, :first_name, :last_name, .... ]
config.show.columns = [:first_name, :last_name, ..... ]
config.list.columns = [:login, :state, :first_name,
:last_name, .... ]
config.update.columns = [:first_name, :last_name, :address,
...... ]
users_controller:16 is
active_scaffold :user do |config|
Here is the new backtrace:
|/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb:19:in
`method_missing'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:186:in
`method_missing'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:137:in
`send'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:137:in
`_load_action_columns'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/actions.rb:20:in
`each'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/actions.rb:20:in
`each'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:136:in
`_load_action_columns'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:63:in
`active_scaffold'
/rails/formdir_v2/app/controllers/users_controller.rb:16
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in
`load_without_new_constant_marking'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in
`load_file'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379:in
`load_file'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:259:in
`require_or_load'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in
`load_missing_constant'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in
`const_missing'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in
`const_missing'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in
`constantize'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in
`each'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in
`constantize'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb:162:in
`constantize'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:443:in
`recognize'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:436:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in
`dispatch'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in
`_call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/abstract_store.rb:122:in
`call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in
`call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in
`cache'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in
`call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`synchronize'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in
`run'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in
`process'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
`process_client'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
`process_client'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`initialize'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
`initialize'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in
`run'
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
script/server:3|
Soren Christensen wrote:
I have ruby-1.8.6.p36-20.4
The problem in particular happens when my session controller
redirects to the users controller upon login.
Happens both with Mongrel and Phusion.
Here is the full trace:
undefined method `create' for UsersController:Class
|/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb:24:in
`send'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb:24:in
`method_missing'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:186:in
`method_missing'
/rails/formdir_v2/app/controllers/users_controller.rb:22:in
`__instance_exec0'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/extending.rb:74:in
`send'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/extending.rb:74:in
`instance_exec'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb:11:in
`configure'
/rails/formdir_v2/vendor/plugins/active_scaffold/lib/active_scaffold.rb:61:in
`active_scaffold'
/rails/formdir_v2/app/controllers/users_controller.rb:16
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in
`load_without_new_constant_marking'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in
`load_file'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379:in
`load_file'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:259:in
`require_or_load'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in
`load_missing_constant'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in
`const_missing'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in
`const_missing'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in
`constantize'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in
`each'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in
`constantize'
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb:162:in
`constantize'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:443:in
`recognize'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:436:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in
`dispatch'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in
`_call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/abstract_store.rb:122:in
`call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in
`call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in
`cache'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in
`call'
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`synchronize'
/usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in
`call'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in
`run'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in
`call'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/request_handler.rb:92:in
`process_request'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_request_handler.rb:207:in
`main_loop'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:400:in
`start_request_handler'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:351:in
`handle_spawn_application'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/utils.rb:184:in
`safe_fork'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:349:in
`handle_spawn_application'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in
`__send__'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in
`main_loop'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:163:in
`start'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:209:in
`start'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:262:in
`spawn_rails_application'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:126:in
`lookup_or_add'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:256:in
`spawn_rails_application'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:80:in
`synchronize'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:255:in
`spawn_rails_application'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:154:in
`spawn_application'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:287:in
`handle_spawn_application'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in
`__send__'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in
`main_loop'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.9/bin/passenger-spawn-server:61|
Sergio Cambra .:: entreCables S.L. ::. wrote:
On Lunes, 1 de Febrero de 2010 18:17:20 Soren escribió:
I get a number of these errors - what do they mean - and how do I get
rid of them
/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb:
19:in `method_missing': undefined method `create' for #
(NoMethodError)
I think the backtrace is not full, what is #? It should be an object
reference. What ruby version are you using? Maybe it's a problem with some
ruby versions although is strange it works with some controllers.
/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:
186:in `method_missing'
/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:
137:in `send'
/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:
137:in `_load_action_columns'
/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/
actions.rb:20:in `each'
/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/
actions.rb:20:in `each'
/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:
136:in `_load_action_columns'
/vendor/plugins/active_scaffold/lib/active_scaffold.rb:63:in
`active_scaffold'
/app/controllers/campaigns_controller.rb:7
I have noted that my application can only start in certain controller
and not in others.
Is there a way to preload certain models to prevent this ?
/S
--
You received this me
--
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]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
--
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=en.