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
|
||||
Seat.joins(guest: :group)
|
||||
.where(tables_arrangement_id: params[:id])
|
||||
.order('guests.group_id')
|
||||
.pluck(
|
||||
:table_number,
|
||||
Arel.sql("guests.first_name || ' ' || guests.last_name "), 'guests.id',
|
||||
|
Loading…
x
Reference in New Issue
Block a user