Skip to content

Instantly share code, notes, and snippets.

@apangeajwrubel
Created July 31, 2012 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apangeajwrubel/3212653 to your computer and use it in GitHub Desktop.
Save apangeajwrubel/3212653 to your computer and use it in GitHub Desktop.
adding position to Hints on ItemSteps
@item_steps = ItemStep.all
@item_steps.each do |item_step|
item_step.hints.each_with_index do |hint, index|
hint.position = index
hint.save
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment