Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Created March 10, 2011 16:08
Show Gist options
  • Select an option

  • Save tbuehlmann/864353 to your computer and use it in GitHub Desktop.

Select an option

Save tbuehlmann/864353 to your computer and use it in GitHub Desktop.
- cars.each_with_index do |car, index|
%p{:class => car, :id => "car_#{index + 1}"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment