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