Incomplete Seeding

Fixed the seeding bugs with much help from Michael.
Also done.

On Fri, Oct 3, 2014 at 2:38 PM, Michael Alexander <notifications@github.com>
wrote:

> In db/seeds.rb:
>
> > +    a = Address.new({user_id: user_id, street_address: Faker::Address.street_address, city: city_instance["city"], state: city_instance["state"], zip: Faker::Address.zip_code.to_i})
> > +    a.save
> > +  end
> > +  random_user_addresses(user_id)
> > +end
> > +
> > +#generate users, 20*SCALAR users (100)
> > +def creation_date
> > +
> > +end
> > +
> > +(20*SCALAR).times do |x|
> > +  sample_name = Faker::Name.name
> > +  address_samples = generate_addresses(x+1)
> > +
> > +  u = User.new({id: x+1, name: sample_name, email: Faker::Internet.email(sample_name), phone_number: Faker::PhoneNumber.phone_number, default_billing_address: address_samples[0], default_shipping_address: address_samples[1]})
>
> yeah, this needs to be one attribute, one line, whether or not you're
> doing that via separate commands or a single, line-broken command
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/vikingeducation/viking_store/pull/2/files#r18421004>.
>