I am trying to find the cleanest way to do something special for the first item in an array, then do something different for all the rest. So far I have something like this:
puts @model.children.first.full_name
@model.children[1..@model.children.count].each do |child|
puts child.short_name
end
I don't like how I have to specify the count in the range. I would like to find a shorter way to specify "from the second item to the last". How can this be done?