Ruby on Rails Monday, September 9, 2013

if you really need to do some processing that gets you an array with duplicate entries and then clean the array at the end of it all.  try doing something like

@mem = @mem.uniq

you can probably do @mem.uniq!  but i've had some cases where that didn't get me the results i wanted.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cced12b8-9434-41f5-8a51-2f643f450973%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment