Order guests within same table by color
This commit is contained in:
parent
3ae90bfc4e
commit
1e23ad8e50
@ -8,6 +8,7 @@ class TablesArrangementsController < ApplicationController
|
|||||||
def show
|
def show
|
||||||
Seat.joins(guest: :group)
|
Seat.joins(guest: :group)
|
||||||
.where(tables_arrangement_id: params[:id])
|
.where(tables_arrangement_id: params[:id])
|
||||||
|
.order('guests.group_id')
|
||||||
.pluck(
|
.pluck(
|
||||||
:table_number,
|
:table_number,
|
||||||
Arel.sql("guests.first_name || ' ' || guests.last_name "), 'guests.id',
|
Arel.sql("guests.first_name || ' ' || guests.last_name "), 'guests.id',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user