Re: Delayed Job not loading gem
The fix is adding "requirie 'hpricot'" to config/initializers/ delayed_job.rb On Aug 19, 6:59 pm, Abel Tamayo 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 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 her...@googlegroups.com. > > To unsubscribe from this group, send email to > > heroku+unsubscr...@googlegroups.com > > . > > 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Delayed Job not loading gem
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 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 her...@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > . > 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Delayed Job not loading gem
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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.