Having some trouble with updating a single field.  *target* is a generated 
integer, as to which record to update, and *dings* is my current full 
dataset, and *newvalue *is a new string.

dings = DBHR[:dingbats]
newvalue = Dev.genp
ids = dings.select(:id).map(:id)
target = ids.sample
dings.update(bravo: newvalue).where(id: target)

==> undefined method 'where' 

I'm not sure what the error is for, as it seems legit.  It is qualifying 
the record to update, and instructing what update to be made.  

Any insight appreciated.  Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/bb6806ec-1457-424a-b9f7-61ca1956ffffn%40googlegroups.com.

Reply via email to