gregbell/active_admin — Issue #717: Problem with wiki article - couldn't find valid mapping
Author: ivanoats
Created: 2011-11-02 23:10:26+00:00
State: open

following the wiki article here:
https://github.com/gregbell/active_admin/wiki/Your-First-Admin-Resource%3A-AdminUser

I get the error:

RuntimeError in Admin::AdminUsersController#create

Could not find a valid mapping for #
Rails.root: /Users/ivan/dev/project_test

Application Trace | Framework Trace | Full Trace
devise (1.4.9) lib/devise/mapping.rb:41:in `find_scope!'
devise (1.4.9) lib/devise/mailers/helpers.rb:25:in `initialize_from_record'
devise (1.4.9) lib/devise/mailers/helpers.rb:20:in `devise_mail'
devise (1.4.9) app/mailers/devise/mailer.rb:9:in `reset_password_instructions'
actionpack (3.1.1) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.1) lib/abstract_controller/rendering.rb:45:in `process'
actionmailer (3.1.1) lib/action_mailer/old_api.rb:65:in `process'
actionmailer (3.1.1) lib/action_mailer/base.rb:474:in `process'
actionmailer (3.1.1) lib/action_mailer/base.rb:469:in `initialize'
actionmailer (3.1.1) lib/action_mailer/base.rb:456:in `new'
actionmailer (3.1.1) lib/action_mailer/base.rb:456:in `method_missing'
devise (1.4.9) lib/devise/models/recoverable.rb:43:in `send_reset_password_instructions'
app/models/admin_user.rb:10:in `block in '
activesupport (3.1.1) lib/active_support/callbacks.rb:392:in `_run_create_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.1) lib/active_record/callbacks.rb:268:in `create'
activerecord (3.1.1) lib/active_record/persistence.rb:294:in `create_or_update'
activerecord (3.1.1) lib/active_record/callbacks.rb:264:in `block in create_or_update'
activesupport (3.1.1) lib/active_support/callbacks.rb:399:in `_run_save_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.1) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.1.1) lib/active_record/persistence.rb:37:in `save'
activerecord (3.1.1) lib/active_record/validations.rb:50:in `save'
activerecord (3.1.1) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.1.1) lib/active_record/transactions.rb:241:in `block (2 levels) in save'
activerecord (3.1.1) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
activerecord (3.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.1.1) lib/active_record/transactions.rb:208:in `transaction'
activerecord (3.1.1) lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
activerecord (3.1.1) lib/active_record/transactions.rb:241:in `block in save'
activerecord (3.1.1) lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
activerecord (3.1.1) lib/active_record/transactions.rb:240:in `save'
activeadmin (0.3.3) lib/active_admin/resource_controller/callbacks.rb:28:in `block in save_resource'
activeadmin (0.3.3) lib/active_admin/callbacks.rb:80:in `run_save_callbacks'
activeadmin (0.3.3) lib/active_admin/resource_controller/callbacks.rb:27:in `save_resource'
activeadmin (0.3.3) lib/active_admin/resource_controller/callbacks.rb:22:in `block in create_resource'
activeadmin (0.3.3) lib/active_admin/callbacks.rb:80:in `run_create_callbacks'
activeadmin (0.3.3) lib/active_admin/resource_controller/callbacks.rb:21:in `create_resource'
inherited_resources (1.2.2) lib/inherited_resources/actions.rb:33:in `create'
activeadmin (0.3.3) lib/active_admin/resource_controller/actions.rb:48:in `create'
actionpack (3.1.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.1.1) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.1.1) lib/active_support/callbacks.rb:452:in `_run__931083479874199297__process_action__4601764554505346255__callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.1) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
activerecord (3.1.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.1) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.1.1) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.1) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.1.1) lib/action_controller/metal.rb:236:in `block in action'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `call'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:29:in `call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:82:in `optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:532:in `call'
sass (3.1.10) lib/sass/plugin/rack.rb:54:in `call'
warden (1.0.6) lib/warden/manager.rb:35:in `block in call'
warden (1.0.6) lib/warden/manager.rb:34:in `catch'
warden (1.0.6) lib/warden/manager.rb:34:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.5) lib/rack/etag.rb:23:in `call'
rack (1.3.5) lib/rack/conditionalget.rb:35:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/flash.rb:243:in `call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/cookies.rb:331:in `call'
activerecord (3.1.1) lib/active_record/query_cache.rb:62:in `call'
activerecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (3.1.1) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/reloader.rb:68:in `call'
rack (1.3.5) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.1.1) lib/rails/rack/logger.rb:13:in `call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.1) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.5) lib/rack/lock.rb:15:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.1.1) lib/rails/engine.rb:456:in `call'
railties (3.1.1) lib/rails/rack/content_length.rb:16:in `call'
railties (3.1.1) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.3.5) lib/rack/handler/webrick.rb:59:in `service'
/Users/ivan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/ivan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/ivan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Request

Parameters:

{"utf8"=>"✓",
"authenticity_token"=>"NkjL+D[redacted]B/s=",
"admin_user"=>{"email"=>"ivan@[redacted].com"},
"commit"=>"Create Admin user"}
Show session dump

_csrf_token: "NkjL+D[redacted]"
session_id: "0ab62db93551[redacted]"
warden.user.admin_user.key: ["AdminUser", [1], "$2a$10$2ZafCuzsv[redacted]"]