Last active
August 29, 2015 13:57
-
-
Save knorrli/9567264 to your computer and use it in GitHub Desktop.
This file contains 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
vegetable_descriptions = Atelier::VegetableDescription.last(20) | |
vegetable_descriptions.each do |vd| | |
puts vd.description.inspect | |
puts "enter inproved version, blank means no change" | |
input_description = gets | |
if input_description != "\n" | |
input_description.chomp! | |
vd.description = input_description | |
if vd.save | |
puts "new description saved" | |
end | |
else | |
puts "no changes" | |
end | |
puts "-"*30 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment