Hmmm. Are you sure it was just gluten that got you?
On the two cruises I've gone on, I mostly ate at the buffet, eating stuff that seemed fairly safe, as you said. But small amounts of gluten don't bother me. E.g., I could, but don't, have a few croutons on a salad.
Anyway, good advice!