回答編集履歴
3
a
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```ruby
|
2
2
|
|
3
|
-
<%= f.select :type_eq, options_for_select([['選択してください', ''], ['A','A'], ['B','B'],["C","C"]] %>
|
3
|
+
<%= f.select :type_eq, options_for_select([['選択してください', ''], ['A','A'], ['B','B'],["C","C"]]) %>
|
4
4
|
|
5
5
|
|
6
6
|
|
2
う
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```ruby
|
2
2
|
|
3
|
-
<%= f.select :type_eq, options_for_select([['選択してください', ''], ['A'], ['B'],["C"]]
|
3
|
+
<%= f.select :type_eq, options_for_select([['選択してください', ''], ['A','A'], ['B','B'],["C","C"]] %>
|
4
4
|
|
5
5
|
|
6
6
|
|
1
修正
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```ruby
|
2
2
|
|
3
|
-
<%= f.select :type_eq, options_for_select([['選択してください', ''], ['A'], ['B'],["C"]], :selected => f.object.try(:type)||'選択してください') %>
|
3
|
+
<%= f.select :type_eq, options_for_select([['選択してください', ''], ['A'], ['B'],["C"]], :selected => f.object.try(:type_eq)||'選択してください') %>
|
4
4
|
|
5
5
|
|
6
6
|
|