Besides, obviously, a SQL solution.

Thanks.



On Wednesday, August 22, 2012 12:45:52 PM UTC-4, Neil C wrote:
>
> I am trying to do the following:
>
> person.photos.all(:url.like => "amazon").destroy
>
> As you might guess, 1 person has n photos, and each photo has a url 
> property. I am trying to remove any photos with "amazon" in the URL.
>
> When I do this, I get the following:
>
> NoMethodError: undefined method `gsub' for 
> #<Addressable::URI:0x3fc672305d40 URI:amazon>
>
> Any insight into solving this is appreciated.
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/datamapper/-/JvPZWDIwlEUJ.
To post to this group, send email to datamapper@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to