Roberto Pezzali
Roberto Pezzali
Here is the log ``` [1m[35mSQL (3.2ms)[0m [1m[33mUPDATE "cover_items" SET "position" = $1, "updated_at" = $2 WHERE "cover_items"."id" = $3[0m [["position", 2], ["updated_at", "2018-08-08 20:57:06.146173"], ["id", 284]] [1m[35m (2.3ms)[0m [1m[34mSELECT...
I have a class Cover with many items ``` class Cover < ApplicationRecord has_many :items, -> { order(position: :asc) }, inverse_of: :cover, dependent: :destroy, index_errors: true end class Cover <...
No, because cover items are created on frontend using a vue app. I just have the log... Here is my post action. My cover has 4 items, so in my...
Here are my models ``` class Cover < ApplicationRecord include Cover::Formats include Cover::BeforeDestroyValidations has_many :items, -> { order(position: :asc) }, inverse_of: :cover, dependent: :destroy, index_errors: true has_many :teasers, through: :items...
Yes, but I have 40 files... :(