small medium large xlarge

06 Dec 2013, 19:00
Alesh Houdek (1 post)

I’ve made the updates to products_controller_test.rb (even tried copying the file from the downloads) and I continue to get this error when I run rake test:

  1) Error:
ActionController::ParameterMissing: param not found: product
    app/controllers/products_controller.rb:72:in `product_params'
    app/controllers/products_controller.rb:44:in `block in update'
    app/controllers/products_controller.rb:43:in `update'
    test/controllers/products_controller_test.rb:46:in `block in <class:ProductsControllerTest>'

7 tests, 11 assertions, 0 failures, 1 errors, 0 skips

I’m running Ruby 2.0.0 and Rails 4.0.0

14 Jan 2014, 18:38
Nadav Moran (1 post)

Maybe you forgot to add instance variable mark ‘@’ when you gave the ‘@product’ in the ‘should_update_product’?

  You must be logged in to comment