The fix is adding "requirie 'hpricot'" to config/initializers/
delayed_job.rb

On Aug 19, 6:59 pm, Abel Tamayo <[email protected]> wrote:
> The environment should be the same. Have you tried to require Hpricot
> manually from the job that uses it?
>
>
>
> On Thu, Aug 19, 2010 at 2:29 AM, daniel hoey <[email protected]> wrote:
> > Hi,
>
> > We use the Hpricot gem on our Heroku app. It is specified in the .gems
> > file and "config.gem :hpricot" is in the config/environment.rb file.
> > Sometimes our delayed jobs throw a NoMethodError when attempting to
> > use the 'Hpricot()' method. The exact same code with the same data
> > works in the Heroku console. Basically it looks like the delayed jobs
> > do not have the same environment as the console. Does anyone have any
> > suggestions about how to fix this problem?
>
> > Dan
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Heroku" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<heroku%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to