I am trying to extract some data from an array with the following syntax:
@entries_from_db = XrEntry.find(:all, :conditions => [:FeedURI => uri ], :select => 'json')
The :FeedURI is the record that contains an array with uri's ["123456", "23345", "4453"] The uri is the variable wich contains the current uri.
The statement I'm trying to make is 'select JSON from XrEntry where FeedURI contains uri' Im stuck on the part to access the array and always get several error msg's when I'm trying different code.
Does anyone has an idea? Thanks!