What's the most elegant way of knowing if the current selection ID is already part of the Datamapper results, without iterating through all of the results and building an Array?
@saved_item = Array.new
current_user.items.all.each do |item|
@saved_items.push(item.id)
end
if (@saved_items.include?(selection.id))
true
else
false
end