From: Joseph Jackson <joe.b.jackson...@gmail.com>
Date: Mon, 30 Apr 2012 17:59:46 -0400
Local: Mon, Apr 30 2012 5:59 pm
Subject: Re: [spree-user] Jumping through hoops using Spree models to seed store data
I'm not sure. My clients opted to add all the products in by hand rather
I do hear a lot about datashift on this group though.
On Mon, Apr 30, 2012 at 5:57 PM, bensullivan <bensulli...@bensullivan.net>wrote:
> Aaaaarrrrrrggggghhhhhh! (facepalm).
> That worked!
> Thanks so much.
> Is there a way to do this that requires less song and dance around the
> Do folks tend to not use active_record models directly to import seed data
> Cheers again
> Ben
> On Tuesday, 1 May 2012 07:49:12 UTC+10, Joe wrote:
>> Looks like it needs to be namespaced.
>> Spree::Product.create etc.
>> On Mon, Apr 30, 2012 at 5:45 PM, bensullivan <bensulli...@bensullivan.net
>>> Hi folks
>>> I am developing a new spree store for a client who only has about 15
>>> I've been looking at the seeds.rb file in my new store generated by the
>>> It seems like the place to do this kind of stuff and then plugging it in
>>> I figured it's safer using the Spree active_record models to import data
>>> So I'm trying to put a basic record creation line of code in the
>>> p = Product.create :name => "Moo", :price => 10.0, :description =>
>>> I run "rake db:bootstrap" and I get this at the end of the output:
>>> rake aborted!
>>> So then this triggers me to put in all the necessary requires - that's
>>> require 'rubygems'
>>> gem 'spree_core'
>>> require 'active_record'
>>> p = Product.create :name => "Moo", :price => 10.0, :description =>
>>> I get the same error when I retry the db:bootstrap. I don't get the
>>> I feel like I'm missing something here - I'm sure there's an easier
>>> Anyone got any pointers?
>>> Cheers
>>> Ben
>>> --
>> --
> To post to this group, send email to spree-user@googlegroups.com.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||