質問編集履歴

3

追記

2016/03/13 11:37

投稿

hirotto57
hirotto57

スコア57

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

タグを追記

2016/03/13 11:37

投稿

hirotto57
hirotto57

スコア57

test CHANGED
File without changes
test CHANGED
File without changes

1

ActiveRecord追記

2016/03/13 10:58

投稿

hirotto57
hirotto57

スコア57

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- **Railsのpostgresqlで3つのテーブルを結合するやり方を教えてください。**
1
+ **RailsのActiveRecordで3つのテーブルを結合するやり方を教えてください。**
2
2
 
3
3
 
4
4