質問編集履歴
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -67,3 +67,19 @@
|
|
67
67
|
当方、Railsの初心者です。
|
68
68
|
|
69
69
|
何卒宜しくお願い致します。
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
**追記**
|
74
|
+
|
75
|
+
question.rb
|
76
|
+
|
77
|
+
has_many :categories, dependent: :destroy
|
78
|
+
|
79
|
+
accepts_nested_attributes_for :categories
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
has_many :languages, dependent: :destroy
|
84
|
+
|
85
|
+
accepts_nested_attributes_for :languages
|
2
タグを追記
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
ActiveRecord追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
**Railsの
|
1
|
+
**RailsのActiveRecordで3つのテーブルを結合するやり方を教えてください。**
|
2
2
|
|
3
3
|
|
4
4
|
|