diff --git a/app/models/show.rb b/app/models/show.rb index 5f2303f..606916a 100644 --- a/app/models/show.rb +++ b/app/models/show.rb @@ -63,7 +63,6 @@ def get_date(post) end end rescue - puts $! retry unless formats.size == 0 end end diff --git a/lib/tasks/geronimo_sample_data.rake b/lib/tasks/geronimo_sample_data.rake index 3c1bdd9..60a6fdb 100644 --- a/lib/tasks/geronimo_sample_data.rake +++ b/lib/tasks/geronimo_sample_data.rake @@ -27,9 +27,9 @@ def make_shows :password => "foobar", :password_confirmation => "foobar") admin.toggle!(:admin) - 99.times do |n| + 99.times do |n| showtext = Faker::Lorem.sentence(10) - Show.new_from_post("show " + Date.today.next_day(n - 50).strftime('%m/%d/%y') + " " + showtext).save + Show.new_from_post("show " + (Date.today + (n - 50)).strftime('%m/%d/%y') + " " + showtext).save end end