Ruby/Rails does lots of cool stuff when it comes to sugar for basic things, and I think there\'s a very common scenario that I was wondering if anyone has done a helper or s
You could grab the first and last elements and process them differently, if you like.
first = array.shift last = array.pop process_first_one array.each { |x| process_middle_bits } process_last_one