Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: NoMethodError occurred in dataset_items#create #366

Closed
atruskie opened this issue Jul 30, 2018 · 1 comment
Closed

Bug: NoMethodError occurred in dataset_items#create #366

atruskie opened this issue Jul 30, 2018 · 1 comment

Comments

@atruskie
Copy link
Member

A NoMethodError occurred in dataset_items#create:

undefined method []=' for nil:NilClass app/controllers/dataset_items_controller.rb:94:in dataset_item_params'

-------------------------------
Backtrace:
-------------------------------

  app/controllers/dataset_items_controller.rb:94:in `dataset_item_params'
  app/controllers/dataset_items_controller.rb:53:in `create'
  vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
@peichins
Copy link
Member

This happened for a /datasets/3/items POST request send with no content. It was an invalid POST request. This should be caught and handled, with tests added to the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants