Hi, I have one array for example [1,2,3,4] and I want to check the array mathches in database for example if this array mathches exactly [1,2,3,4] == [1,2,3,4] then storing it in one varibale then find the array matches for [1,2,3] (remove last element) then we will get some results and store it in one variable The prblem here i am facing is how to remove last element of an array i.e. like [1,2,3] and how to check the array matches in table -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---