回答編集履歴

3

a

2017/03/31 05:33

投稿

moke
moke

スコア2241

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

2017/03/31 05:33

投稿

moke
moke

スコア2241

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_eq)||'選択してください') %>
3
+ <%= f.select :type_eq, options_for_select([['選択してください', ''], ['A','A'], ['B','B'],["C","C"]] %>
4
4
 
5
5
 
6
6
 

1

修正

2017/03/31 05:30

投稿

moke
moke

スコア2241

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