Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed seed file to include images, but you might need to run rake from

the root of the project for it to work
  • Loading branch information...
commit 3d5ade7f8755edef69109c06b7d703452e9359ad 1 parent e895a99
alexhocksween alexhocksween authored

Showing 2 changed files with 16 additions and 14 deletions. Show diff stats Hide diff stats

  1. +3 1 .gitignore
  2. +13 13 db/seeds.rb
4 .gitignore
@@ -3,8 +3,10 @@
3 3 db/*.sqlite3
4 4 log/*.log
5 5 tmp/
  6 +*.swp
  7 +config/omniauth.rb
6 8 .sass-cache/
7 9 config/database.yml
8 10 public/uploads/
9 11 config/facebook_authentication.yml
10   -config/initializers/omniauth.rb
  12 +config/initializers/omniauth.rb
26 db/seeds.rb
@@ -16,16 +16,16 @@
16 16 @user = User.create(:name => 'Francis Real', :provider => 'facebook', :uid => "1217100528", :email => 'ttt.test@phoreal.tutaktran.com')
17 17
18 18 # Has data, but doesn't load photos
19   -Offer.create(:photo => 'IMG_0704.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Lamp', :description => 'Nunc tempor diam vehicula mauris.')
20   -Offer.create(:photo => 'IMG_0705.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Green plant', :description => 'Nunc tempor diam vehicula mauris.')
21   -Offer.create(:photo => 'IMG_0706.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 5, :title => 'Pens', :description => 'Nunc tempor diam vehicula mauris.')
22   -Offer.create(:photo => 'IMG_0707.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 2, :title => 'Water flask', :description => 'Nunc tempor diam vehicula mauris.')
23   -Offer.create(:photo => 'IMG_0708.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 5, :title => 'Barrel', :description => 'Nunc tempor diam vehicula mauris.')
24   -Offer.create(:photo => 'IMG_0709.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Water jar', :description => 'Nunc tempor diam vehicula mauris.')
25   -Offer.create(:photo => 'IMG_0710.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Stool', :description => 'Nunc tempor diam vehicula mauris.')
26   -Offer.create(:photo => 'IMG_0711.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Teapot', :description => 'Nunc tempor diam vehicula mauris.')
27   -Offer.create(:photo => 'IMG_0712.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 2, :title => 'SLR', :description => 'Nunc tempor diam vehicula mauris.')
28   -Offer.create(:photo => 'IMG_0713.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Water jar', :description => 'Nunc tempor diam vehicula mauris.')
29   -Offer.create(:photo => 'IMG_0714.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Wine glasses', :description => 'Nunc tempor diam vehicula mauris.')
30   -Offer.create(:photo => 'IMG_0715.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Bottle lids', :description => 'Nunc tempor diam vehicula mauris.')
31   -Offer.create(:photo => 'IMG_0716.jpg', :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 5, :title => 'Box', :description => 'Nunc tempor diam vehicula mauris.')
  19 +Offer.create(:photo => File.open('public/seed_images/IMG_0704.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Lamp', :description => 'Nunc tempor diam vehicula mauris.')
  20 +Offer.create(:photo => File.open('public/seed_images/IMG_0705.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Green plant', :description => 'Nunc tempor diam vehicula mauris.')
  21 +Offer.create(:photo => File.open('public/seed_images/IMG_0706.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 5, :title => 'Pens', :description => 'Nunc tempor diam vehicula mauris.')
  22 +Offer.create(:photo => File.open('public/seed_images/IMG_0707.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 2, :title => 'Water flask', :description => 'Nunc tempor diam vehicula mauris.')
  23 +Offer.create(:photo => File.open('public/seed_images/IMG_0708.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 5, :title => 'Barrel', :description => 'Nunc tempor diam vehicula mauris.')
  24 +Offer.create(:photo => File.open('public/seed_images/IMG_0709.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Water jar', :description => 'Nunc tempor diam vehicula mauris.')
  25 +Offer.create(:photo => File.open('public/seed_images/IMG_0710.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Stool', :description => 'Nunc tempor diam vehicula mauris.')
  26 +Offer.create(:photo => File.open('public/seed_images/IMG_0711.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Teapot', :description => 'Nunc tempor diam vehicula mauris.')
  27 +Offer.create(:photo => File.open('public/seed_images/IMG_0712.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 2, :title => 'SLR', :description => 'Nunc tempor diam vehicula mauris.')
  28 +Offer.create(:photo => File.open('public/seed_images/IMG_0713.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Water jar', :description => 'Nunc tempor diam vehicula mauris.')
  29 +Offer.create(:photo => File.open('public/seed_images/IMG_0714.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Wine glasses', :description => 'Nunc tempor diam vehicula mauris.')
  30 +Offer.create(:photo => File.open('public/seed_images/IMG_0715.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 4, :title => 'Bottle lids', :description => 'Nunc tempor diam vehicula mauris.')
  31 +Offer.create(:photo => File.open('public/seed_images/IMG_0716.jpg'), :pickup_point => 'La Ruche, Paris', :user => @user, :category_id => 5, :title => 'Box', :description => 'Nunc tempor diam vehicula mauris.')

0 comments on commit 3d5ade7

Please sign in to comment.
Something went wrong with that request. Please try again.