I have this code:
@note = @patient.notes.find(params[:id])
@notes = @patient.notes.where(jahr: @note.jahr, quartal: @note.quartal).except(@note)
Somehow the .except(@note)
is not working, i get no error, but @note
is still contained in @notes
What do i wrong? Thanks!