method_missing 'no id given' error fixed