this can be done with current_user.received_messages.find(params[:id]) But that is essentially the same as this line of code. So you can leave this like it is.