From: Pete Moran Date: 2009-08-19T21:37:38+09:00 Subject: Re: Using a Model Thanks Jason, So all scripts go in there - thats good to know thanks! and is there a standard way of running them? Regards Peter Jason Stewart wrote: > On Wed, Aug 19, 2009 at 5:27 AM, Pete Moran wrote: >> >> However it fails when trying to load the Model (let alone use it), I >> > Hi Peter, > > Try using script/runner from your rails app and losing the require. > That will handle loading in your Rails environment. You'll still have > to initialize country with the correct values, > but that will get you going in the right direction. > > Jason -- Posted via http://www.ruby-forum.com/.