search for: some_array

Displaying 2 results from an estimated 2 matches for "some_array".

Did you mean: name_array
2006 Jun 02
2
What''s the model pattern for just storing an array of ints?
Maybe this question is obvious, but I''m missing the answer. I want one of the fields in my model to be an array of int. These are not indexes into another model. I''m cool with creating another database table if I have to, but then do I need to do a join to access the data? Or does Ruby have some cool trick where I can translate my array of ints into a String, store it in
2006 Jun 19
2
finding duplicates in an array
an application i am working on sends emails to an array of users. it is possible for the user''s email to actually be in the array more than once. i don''t have a real strong grasp of the ruby syntax yet, but is there an easy way to go through and either remove all of the duplicates or at least only send an email to that user once? -- Posted via http://www.ruby-forum.com/.