質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,8 +8,6 @@
|
|
8
8
|
|
9
9
|
def index
|
10
10
|
|
11
|
-
#@buildings = Building.all
|
12
|
-
|
13
11
|
@q = Building.search(params[:q])
|
14
12
|
|
15
13
|
@buildings = @q.result(distinct: true)
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
###前提・実現したいこと
|
2
2
|
|
3
3
|
Railsで投稿一覧に検索機能を付け、ソートをつけて順番を変えるところまでは問題なくできているのですが、、検索した時の検索結果を特定のカラムの順番で表示したいのですが、なかなか分からずにいます。
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
###該当のソースコード
|
8
4
|
|
9
5
|
|
10
6
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
###該当のソースコード
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
8
12
|
|
9
13
|
def index
|
10
14
|
|