From 17080730f846163435df3dc7933ec1afc9dfd2f2 Mon Sep 17 00:00:00 2001 From: ilya Date: Tue, 24 Aug 2010 14:48:26 -0700 Subject: [PATCH] opening the file in the set photo --- app/controllers/dev_utilities_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/dev_utilities_controller.rb b/app/controllers/dev_utilities_controller.rb index 4282b8964..decff8514 100644 --- a/app/controllers/dev_utilities_controller.rb +++ b/app/controllers/dev_utilities_controller.rb @@ -62,8 +62,11 @@ def warzombie backer_number = YAML.load_file(Rails.root.join('config','backer_number.yml'))[:seed_number].to_i username = backer_info[backer_number]['username'].gsub(/ /,'').downcase + + @fixture_name = File.dirname(__FILE__) + "../../../public/images/users/#{username}.jpg" + photo = current_user.post(:photo, :album_id => album.id, - :user_file => "public/images/users/#{username}.jpg") + :user_file => "") current_user.update_profile(:image_url => photo.url) end