Created
July 31, 2012 01:47
-
-
Save apangeajwrubel/3212653 to your computer and use it in GitHub Desktop.
adding position to Hints on ItemSteps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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