我正嘗試在Rails 5.2中使用Active Storage。我發現,我應該在遷移file類型創建領域,但我有一個錯誤: $ rdm
Running via Spring preloader in process 40193
== 20171217191942 CreateDishes: migrating
=====================================
--
我需要添加章節到一個頁面。聽我說。我知道這個話題已被擊敗,但我覺得我有答案,我只是不知道如何理解它。 I have been working hard to understand and implement the following tutorial in my client's store...... https://oak.works/blog/technical/2017/03/23/sh
我創建了一個模型Tester,整數列爲tester_type,並聲明模型中的enum變量。 class Tester < ApplicationRecord
enum tester_type: { junior: 0, senior: 1, group: 2 }
end
我得到以下錯誤,而試圖創建/初始化該模型中的對象: ArgumentError: You tried to de