diff options
Diffstat (limited to 'app/controllers/things_controller.rb')
| -rw-r--r-- | app/controllers/things_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/things_controller.rb b/app/controllers/things_controller.rb index f9e7674..cc9b5b0 100644 --- a/app/controllers/things_controller.rb +++ b/app/controllers/things_controller.rb @@ -64,8 +64,8 @@ class ThingsController < ApplicationController end def thing_params - params.require(:thing).permit(:target, :title, :publisher, :address, :year, :url, :access, - :authors, :insideof, :pages, :rate, :status, :kind, :bought_at, - :editors, :note, :where_is_it, tag_ids: []) + params.expect(thing: [:target, :title, :publisher, :address, :year, :url, :access, + :authors, :insideof, :pages, :rate, :status, :kind, :bought_at, + :editors, :note, :where_is_it, { tag_ids: [] }]) end end |
