Skip to content

Instantly share code, notes, and snippets.

@esparkman
Created April 25, 2010 22:45
Show Gist options
  • Save esparkman/378793 to your computer and use it in GitHub Desktop.
Save esparkman/378793 to your computer and use it in GitHub Desktop.
ArgumentError in Admin/postsController#create
wrong number of arguments (1 for 0)
Rails.root: /Users/evansparkman/webapps/esdezines
Application Trace | Framework Trace | Full Trace
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/flash.rb:13:in `delete'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/flash.rb:13:in `redirect_to'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/instrumentation.rb:59:in `redirect_to'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications/instrumenter.rb:18:in `instrument'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications.rb:48:in `__send__'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications.rb:48:in `instrument'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/instrumentation.rb:58:in `redirect_to'
app/controllers/admin/posts_controller.rb:21:in `create'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/base.rb:153:in `process_action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/rendering.rb:11:in `process_action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications/instrumenter.rb:18:in `instrument'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications.rb:48:in `__send__'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications.rb:48:in `instrument'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/instrumentation.rb:28:in `process_action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/callbacks.rb:18:in `process_action'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:433:in `_run__101774640__process_action__1623385099__callbacks'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:404:in `send'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:404:in `_run_process_action_callbacks'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in `send'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in `run_callbacks'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/callbacks.rb:17:in `process_action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/rescue.rb:8:in `process_action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/base.rb:123:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/rendering.rb:39:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal.rb:84:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal.rb:124:in `action'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:29:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:29:in `call'
rack-mount (0.6.3) lib/rack/mount/route_set.rb:148:in `call'
rack-mount (0.6.3) lib/rack/mount/code_generation.rb:89:in `recognize'
rack-mount (0.6.3) lib/rack/mount/code_generation.rb:73:in `optimized_each'
rack-mount (0.6.3) lib/rack/mount/code_generation.rb:88:in `recognize'
rack-mount (0.6.3) lib/rack/mount/route_set.rb:139:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:458:in `call'
warden (0.10.3) lib/warden/manager.rb:35:in `call'
warden (0.10.3) lib/warden/manager.rb:34:in `catch'
warden (0.10.3) lib/warden/manager.rb:34:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:31:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/query_cache.rb:35:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:11:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:30:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/connection_pool.rb:365:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/head.rb:14:in `call'
/Users/evansparkman/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/params_parser.rb:19:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/flash.rb:167:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/session/cookie_store.rb:107:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/cookies.rb:202:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:410:in `_run_call_callbacks'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in `send'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in `run_callbacks'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/Users/evansparkman/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/sendfile.rb:105:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/show_exceptions.rb:48:in `call'
/Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/rack/logger.rb:13:in `call'
/Users/evansparkman/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/runtime.rb:17:in `call'
/Users/evansparkman/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/Users/evansparkman/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
/Users/evansparkman/.gem/ruby/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/static.rb:30:in `call'
/Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:132:in `call'
/Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:in `send'
/Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:in `method_missing'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/rack/application_spawner.rb:118:in `run'
passenger (2.2.11) lib/phusion_passenger/rack/application_spawner.rb:65:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/rack/application_spawner.rb:58:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/rack/application_spawner.rb:41:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:159:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) bin/passenger-spawn-server:61
Request
Parameters:
{"commit"=>"Create Post",
"post"=>{"body"=>"test",
"title"=>"test",
"publish_status"=>"0",
"category_id"=>"",
"user_id"=>""},
"authenticity_token"=>"XK1Ff7Bq1qoIjNHEDzjE1ix8yh7GXsuK1q2I9c2ADD8="}
Show session dump
Show env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment