Skip to content

Instantly share code, notes, and snippets.

@marcelojunior
Created April 13, 2015 21:26
Show Gist options
  • Save marcelojunior/7cab8c18dca9eb33008d to your computer and use it in GitHub Desktop.
Save marcelojunior/7cab8c18dca9eb33008d to your computer and use it in GitHub Desktop.
Started POST "/manager/themed_campaigns" for 127.0.0.1 at 2015-04-13 18:17:17 -0300
Processing by Manager::ThemedCampaignsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LrAX3l2AwWyhRzkq5RUajlsIcXlU0g/ADJBegKZDeyU=", "manager_ad_themed_campaign"=>{"title"=>"Dia das mães", "subdomain"=>"diadasmaes", "description"=>"Página do dia das maes", "date_start(3i)"=>"13", "date_start(2i)"=>"4", "date_start(1i)"=>"2015", "date_end(3i)"=>"13", "date_end(2i)"=>"4", "date_end(1i)"=>"2017", "active"=>"true", "color1"=>"#f17420", "color2"=>"#16556a", "color3"=>"#898b8d", "img_bg_cache"=>"", "img_bg"=>#<ActionDispatch::Http::UploadedFile:0x007feb7bde3938 @tempfile=#<Tempfile:/var/folders/2v/f7hxln6x29gcq8xlkj5fgmwh0000gn/T/RackMultipart20150413-14849-3uartp>, @original_filename="banner-home-diadobeijo.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"manager_ad_themed_campaign[img_bg]\"; filename=\"banner-home-diadobeijo.jpg\"\r\nContent-Type: image/jpeg\r\n">, "img_1_cache"=>"", "img_2_cache"=>"", "img_3_cache"=>"", "img_4_cache"=>"", "img_5_cache"=>"", "img_6_cache"=>"", "products_attributes"=>{"1428959707075"=>{"id"=>"563"}}}}
http://lvh.me:3000/manager/themed_campaigns
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
Completed 404 Not Found in 181ms
ActiveRecord::RecordNotFound - Couldn't find Manager::Ad::Product with ID=563 for Manager::Ad::ThemedCampaign with ID=:
activerecord (4.1.9) lib/active_record/nested_attributes.rb:545:in `raise_nested_attributes_record_not_found!'
activerecord (4.1.9) lib/active_record/nested_attributes.rb:482:in `block in assign_nested_attributes_for_collection_association'
activerecord (4.1.9) lib/active_record/nested_attributes.rb:460:in `assign_nested_attributes_for_collection_association'
activerecord (4.1.9) lib/active_record/nested_attributes.rb:343:in `products_attributes='
activerecord (4.1.9) lib/active_record/attribute_assignment.rb:45:in `_assign_attribute'
activerecord (4.1.9) lib/active_record/attribute_assignment.rb:56:in `block in assign_nested_parameter_attributes'
activerecord (4.1.9) lib/active_record/attribute_assignment.rb:56:in `assign_nested_parameter_attributes'
activerecord (4.1.9) lib/active_record/attribute_assignment.rb:36:in `assign_attributes'
activerecord (4.1.9) lib/active_record/core.rb:452:in `init_attributes'
activerecord (4.1.9) lib/active_record/core.rb:195:in `initialize'
activerecord (4.1.9) lib/active_record/inheritance.rb:30:in `new'
app/controllers/manager/themed_campaigns_controller.rb:28:in `create'
actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call'
activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting'
activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting'
activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks'
actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process'
actionview (4.1.9) lib/action_view/rendering.rb:30:in `process'
actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch'
actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action'
actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call'
actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call'
actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call'
omniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'
omniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'
meta_request (0.3.4) lib/meta_request/middlewares/app_request_handler.rb:13:in `call'
meta_request (0.3.4) lib/meta_request/middlewares/meta_request_handler.rb:13:in `call'
bullet (4.14.4) lib/bullet/rack.rb:10:in `call'
jquery-fileupload-rails (0.4.1) lib/jquery/fileupload/rails/middleware.rb:14:in `_call'
jquery-fileupload-rails (0.4.1) lib/jquery/fileupload/rails/middleware.rb:10:in `call'
warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
warden (1.2.3) lib/warden/manager.rb:34:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call'
activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
activerecord (4.1.9) lib/active_record/migration.rb:380:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks'
actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
airbrake (4.1.0) lib/airbrake/rails/middleware.rb:13:in `call'
better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
rack-contrib (1.1.0) lib/rack/contrib/response_headers.rb:17:in `call'
meta_request (0.3.4) lib/meta_request/middlewares/headers.rb:16:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.1.9) lib/rails/rack/logger.rb:20:in `call'
quiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets'
actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call'
rack-cors (0.2.9) lib/rack/cors.rb:54:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
airbrake (4.1.0) lib/airbrake/user_informer.rb:16:in `_call'
airbrake (4.1.0) lib/airbrake/user_informer.rb:12:in `call'
railties (4.1.9) lib/rails/engine.rb:514:in `call'
railties (4.1.9) lib/rails/application.rb:144:in `call'
rack (1.5.2) lib/rack/deflater.rb:25:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
unicorn (4.8.3) lib/unicorn/http_server.rb:576:in `process_client'
unicorn (4.8.3) lib/unicorn/http_server.rb:670:in `worker_loop'
unicorn (4.8.3) lib/unicorn/http_server.rb:525:in `spawn_missing_workers'
unicorn (4.8.3) lib/unicorn/http_server.rb:140:in `start'
unicorn-rails (2.2.0) lib/unicorn_rails.rb:33:in `run'
rack (1.5.2) lib/rack/server.rb:264:in `start'
railties (4.1.9) lib/rails/commands/server.rb:69:in `start'
railties (4.1.9) lib/rails/commands/commands_tasks.rb:81:in `block in server'
railties (4.1.9) lib/rails/commands/commands_tasks.rb:76:in `server'
railties (4.1.9) lib/rails/commands/commands_tasks.rb:40:in `run_command!'
railties (4.1.9) lib/rails/commands.rb:17:in `<top (required)>'
bin/rails:8:in `<top (required)>'
spring (1.3.4) lib/spring/client/rails.rb:28:in `call'
spring (1.3.4) lib/spring/client/command.rb:7:in `call'
spring (1.3.4) lib/spring/client.rb:26:in `run'
spring (1.3.4) bin/spring:48:in `<top (required)>'
spring (1.3.4) lib/spring/binstub.rb:11:in `<top (required)>'
/Users/marcelo/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
bin/spring:16:in `<top (required)>'
bin/rails:3:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment