質問編集履歴
2
article_params追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,6 +124,14 @@
|
|
124
124
|
|
125
125
|
end
|
126
126
|
|
127
|
+
private
|
128
|
+
|
129
|
+
def article_params
|
130
|
+
|
131
|
+
params.require(:article).permit(:current_version , :status , :user_id , article_histories_attributes:[:id, :article_id, :version, :title, :content])
|
132
|
+
|
133
|
+
end
|
134
|
+
|
127
135
|
end
|
128
136
|
|
129
137
|
```
|
1
バージョン追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -130,4 +130,16 @@
|
|
130
130
|
|
131
131
|
|
132
132
|
|
133
|
+
ちなみにバージョンは
|
134
|
+
|
135
|
+
$ bin/rails -v
|
136
|
+
|
137
|
+
Rails 5.0.1
|
138
|
+
|
139
|
+
$ ruby -v
|
140
|
+
|
141
|
+
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin14]
|
142
|
+
|
143
|
+
です。
|
144
|
+
|
133
145
|
どうかよろしくお願いします。
|