Bug #12973
closedForbiddenAttributesError when trying to create a container without an image
Description
I tried to add a continer and clicked next before adding an image (I did add a tag) and got:
ActiveModel::ForbiddenAttributesError in Containers::StepsController#update.
partial stack trace:
activemodel (4.1.5) lib/active_model/forbidden_attributes_protection.rb:21:in `sanitize_for_mass_assignment'
protected_attributes (1.1.3) lib/active_model/mass_assignment_security.rb:354:in `sanitize_for_mass_assignment'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:58:in `assign_attributes'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/core.rb:8:in `init_attributes'
activerecord (4.1.5) lib/active_record/core.rb:198:in `initialize'
activerecord (4.1.5) lib/active_record/inheritance.rb:30:in `new'
activerecord (4.1.5) lib/active_record/inheritance.rb:30:in `new'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/reflection.rb:16:in `build_association'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/associations.rb:7:in `build_record'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/associations.rb:136:in `build'
activerecord (4.1.5) lib/active_record/associations/builder/singular_association.rb:18:in `build_image'
/home/orabin/git/foreman/foreman-docker/app/controllers/containers/steps_controller.rb:38:in `build_state'