質問編集履歴

1

変更点は<%= %>から=をとりました。

2020/05/08 13:12

投稿

mamikko
mamikko

スコア7

test CHANGED
File without changes
test CHANGED
@@ -79,3 +79,19 @@
79
79
 
80
80
 
81
81
  カラム名とハッシュを消したいのですが、修正の仕方が分からなくて困っいます。
82
+
83
+
84
+
85
+ 修正後のnew.html.erbです。
86
+
87
+ ```
88
+
89
+ <% Product.statuses.each do |status| %>
90
+
91
+ <div><%= f.label ("enums.products.status#{status[0]}")%></div>
92
+
93
+ <div><%= f.radio_button :staus, [0,1]%></div>
94
+
95
+ <% end %>
96
+
97
+ ```