st recent call first)
ActiveRecord::StatementInvalid
PG::UndefinedFunction: ERROR: operator does not exist: character varying = integer
LINE 1: ...gs".* FROM "bookings" WHERE "bookings"."trip_id" = 1455 LIM...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT "bookings".* FROM "bookings" WHERE "bookings"."trip_id" = 1455 LIMIT 1
app/controllers/bookings_controller.rb ? in email (application)
@booking = Booking.where(trip_id: trip.id).first
Frames 50 until 107 were omitted and not available. Caused by PG::UndefinedFunction ERROR: operator does not exist: character varying = integer LINE 1: ...gs".* FROM "bookings" WHERE "bookings"."trip_id" = 1455 LIM... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. app/controllers/bookings_controller.rb ? in email (application) @booking = Booking.where(trip_id: trip.id).first Frames 50 until 107 were omitted and not available.
Aucun commentaire:
Enregistrer un commentaire