質問編集履歴

2

修正

2020/04/03 13:33

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -60,7 +60,7 @@
60
60
 
61
61
  def new
62
62
 
63
- @post_article_form = UserFrontend::PostArticleForm.new
63
+ @post_article_form = PostArticleForm.new
64
64
 
65
65
  end
66
66
 

1

修正

2020/04/03 13:33

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  フォームオブジェクト
32
32
 
33
- class UserFrontend::PostArticleForm
33
+ class PostArticleForm
34
34
 
35
35
  include ActiveModel::Model
36
36
 
@@ -76,7 +76,7 @@
76
76
 
77
77
  == render "form", form: form
78
78
 
79
- = form.submit "上記の内容で投稿する"
79
+ = form.submit "投稿する"
80
80
 
81
81
  ```
82
82
 
@@ -94,7 +94,7 @@
94
94
 
95
95
  = f.fields_for :photos, photo, index: index do |image|
96
96
 
97
- = image.file_field :image, id: "upload-file-#{index}", style: "display:none;"
97
+ ここに「<PostPhoto::ActiveRecord_Associations_CollectionProxy:0x007fcf7755f2f0>」というエラーが表示される
98
98
 
99
99
  ```
100
100