Roberto Pezzali

Results 5 comments of Roberto Pezzali

Here is the log ``` [1mSQL (3.2ms) UPDATE "cover_items" SET "position" = $1, "updated_at" = $2 WHERE "cover_items"."id" = $3 [["position", 2], ["updated_at", "2018-08-08 20:57:06.146173"], ["id", 284]]  (2.3ms) SELECT...

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... :(