Rails 8 中 accepts_nested_attributes_for 無法正常運作的解決方案
問題描述
在使用 Jekyll 建立自己的 blog 時,我想用 Tailwindcss 手刻部落格,然而在推上 github 跑 action 時遇到 Conversion error: Jekyll::Converters::PostCss。
在試著用 rails 建立自己的部落格時,需要在 active_admin 使用的後台建立 post 並使用 select2 建立 tags。 然而,當我試著用正常方式處理時,卻一直跑出 TypeError: $(...).select2 is not a function 的錯誤…