質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,6 +90,42 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
+
### controller
|
94
|
+
|
95
|
+
```Ruby
|
96
|
+
|
97
|
+
if !@info.station1.empty? && !@info.station1.include?("駅")
|
98
|
+
|
99
|
+
@info.station1 << "駅"
|
100
|
+
|
101
|
+
results1 = Geocoder.search(@info.station1)
|
102
|
+
|
103
|
+
@info.longitude_latitude1 = results1.first.coordinates.join(',')
|
104
|
+
|
105
|
+
elsif !@info.station1.empty? && @info.station1.include?("駅")
|
106
|
+
|
107
|
+
results1 = Geocoder.search(@info.station1)
|
108
|
+
|
109
|
+
@info.longitude_latitude1 = results1.first.coordinates.join(',')
|
110
|
+
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
if @info.save
|
118
|
+
|
119
|
+
.
|
120
|
+
|
121
|
+
.
|
122
|
+
|
123
|
+
.
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
|
128
|
+
|
93
129
|
### 試したこと
|
94
130
|
|
95
131
|
・MYSQLで、variable_nameの文字コードをutf8mb4に
|
1
脱字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -92,7 +92,7 @@
|
|
92
92
|
|
93
93
|
### 試したこと
|
94
94
|
|
95
|
-
・
|
95
|
+
・MYSQLで、variable_nameの文字コードをutf8mb4に
|
96
96
|
|
97
97
|
・database.yml内の設定もutf8mb4に
|
98
98
|
|