Is there some sort of short hand for
@notifications = Notification.find(:all, :conditions => ['expires_at > ?', Time.now])
notif = Notification.find(:all, cookie[0].to_i)
@notifications.delete(notif[0]) if not notif.empty?
cookie is an id of a notification stored into cookies. this is in an iteration, that removes notifications that the user doesn't want to see.
thanks! =)