I'm facing a error in rails while updanting a attribute accepted.
accepted is a boolean type coloumn.
This is the code:
def response
if params[:response]
@invite = Invite.find_by(invited: '2')
@invite.update(accepted: params[:response])
render nothing: true
end
end
The trace (sorry for image):
The error is Stack level is too deep