Problem with starting the rails server through cron


My application is built on ruby on rails and the database used is
Berkeley database

the problem i get when the script is executed through cron is:

`gem_original_require’: can’t convert nil into String (TypeError)

and so on.

note:script works fine when executed manually using ./scriptname

thanks in advance