app/controllers/adminpanel/sections_controller.rb in adminpanel-1.2.12 vs app/controllers/adminpanel/sections_controller.rb in adminpanel-2.0.0

- old
+ new

@@ -46,7 +46,21 @@ # end def index @sections = Section.all end + + private + def section_params + params.require(:section).permit( + :description, + :has_image, + :key, + :page, + :name, + :has_description, + :images_attributes => [:id, :file] + ) + + end end end