finally got it working by using the find active record query method instead of the where method, which was returning a relation, NOT a record, like I needed it to. I refactored the js and controllers as well.