I have the following skeleton for a rake task:
I have the following skeleton for a rake task:
========== namespace :db do
desc "Populate database for first time based on export from AS/400 system" task :populate_from_export do
You need to make sure your config files are loaded. Try:
task :populate_from_export => [ :environment ] do
instead of the line above my comment.
Isak
Perfect.... thanks :-).