回答編集履歴
1
修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
```rb
|
4
4
|
|
5
|
-
@book = Book.order(%(length(replace(title, ' ', '')) desc))
|
5
|
+
@book = Book.order(Arel.sql(%(length(replace(title, ' ', '')) desc)))
|
6
6
|
|
7
7
|
```
|
8
8
|
|