gregbell/active_admin — Issue #619: skip before filter produces errors
Author: jcroca
Created: 2011-10-14 14:22:54+00:00
State: open

hi im trying to add a skip before filter config.skip_before_filter :adjust_format_for_iphone and i get this error:

/Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/namespace.rb:176:in eval': uninitialized constant ActiveAdmin::Dashboards::ResourceController (NameError)
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/dashboards/dashboard_controller.rb:3:inmodule:Dashboards'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/dashboards/dashboard_controller.rb:2:in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/dashboards/dashboard_controller.rb:1:in'
from (eval):1:in generate_dashboard_controller'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/namespace.rb:176:ineval'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/namespace.rb:176:in generate_dashboard_controller'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/namespace.rb:39:ininitialize'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/application.rb:94:in new'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/application.rb:94:infind_or_create_namespace'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/application.rb:86:in register'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin.rb:60:inregister'
from /Users/juanroca/Projects/movogo-web/app/admin/users.rb:1:in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:inconst_missing_from_s3_library'
from /Users/juanroca/Projects/movogo-web/app/helpers/users/confirmations_helper.rb:1:in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/actionpack-3.0.10/lib/abstract_controller/helpers.rb:148:inblock in modules_for_helpers'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/actionpack-3.0.10/lib/abstract_controller/helpers.rb:144:in map!'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/actionpack-3.0.10/lib/abstract_controller/helpers.rb:144:inmodules_for_helpers'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/actionpack-3.0.10/lib/action_controller/metal/helpers.rb:101:in modules_for_helpers'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/actionpack-3.0.10/lib/abstract_controller/helpers.rb:97:inhelper'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/actionpack-3.0.10/lib/action_controller/base.rb:228:in inherited'
from /Users/juanroca/Projects/movogo-web/app/controllers/application_controller.rb:1:in'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in const_missing_from_s3_library'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/inherited_resources-1.2.2/lib/inherited_resources/base.rb:14:inmodule:InheritedResources'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/inherited_resources-1.2.2/lib/inherited_resources/base.rb:4:in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/resource_controller/actions.rb:2:inmodule:ActiveAdmin'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/resource_controller/actions.rb:1:in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/resource_controller.rb:2:in'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin/application.rb:172:in before_filter'
from /Users/juanroca/Projects/movogo-web/config/initializers/zactive_admin.rb:86:inblock in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/activeadmin-0.3.2/lib/active_admin.rb:56:in setup'
from /Users/juanroca/Projects/movogo-web/config/initializers/zactive_admin.rb:1:in'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/engine.rb:201:in block (2 levels) in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/engine.rb:200:ineach'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/engine.rb:200:in block in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/initializable.rb:25:ininstance_exec'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/initializable.rb:25:in run'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/initializable.rb:50:inblock in run_initializers'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/initializable.rb:49:in each'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/initializable.rb:49:inrun_initializers'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/application.rb:134:in initialize!'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/application.rb:77:inmethod_missing'
from /Users/juanroca/Projects/movogo-web/config/environment.rb:5:in '
from /Users/juanroca/Projects/movogo-web/config.ru:3:inblock in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/rack-1.2.4/lib/rack/builder.rb:46:in instance_eval'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/rack-1.2.4/lib/rack/builder.rb:46:ininitialize'
from /Users/juanroca/Projects/movogo-web/config.ru:1:in new'
from /Users/juanroca/Projects/movogo-web/config.ru:1:in'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/rack-1.2.4/lib/rack/builder.rb:35:in eval'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/rack-1.2.4/lib/rack/builder.rb:35:inparse_file'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/rack-1.2.4/lib/rack/server.rb:162:in app'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/rack-1.2.4/lib/rack/server.rb:253:inwrapped_app'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/rack-1.2.4/lib/rack/server.rb:204:in start'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/commands/server.rb:65:instart'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/commands.rb:30:in block in '
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/commands.rb:27:intap'
from /Users/juanroca/.rvm/gems/ruby-1.9.2-p180@movogo/gems/railties-3.0.10/lib/rails/commands.rb:27:in '
from script/rails:6:inrequire'
from script/rails:6:in `'