Thanks... I've found that one of the Rails hazards is following
tutorials that don't specify the Ruby type and version, and the
version of the gem... I used what was probably an old article (on
heroku - with a recent modification date) that told me to manually add
the table - not in a hobo project project, but a basic DJ tutorial.

I'll probably use the HoboFields trick above (thanks, Bryan - very
helpful), until I refactor - and do it right ;)

Yes, all my extra stuff is in a class of its' own. No modification of
the basic Gem/tutorial table.

This is my first Hobo project - I'm finding the CookBook to be very
helpful. Thanks - really interesting framework and I suspect it'll
make projects much easier, as I get more used to it. I did have a stab
at using 1.0 back when I barely knew anything about RoR, and I'm
finding 1.3 is much easier to get to grips with and much more
productive than plain RoR.

Regards, JeremyC

On Dec 30, 5:06 pm, Matt Jones <[email protected]> wrote:
> On Dec 30, 2011, at 7:33 AM, Jeremy Chatfield wrote:
>
> > Hi - I'm using hobo 1.3 on rails 3.0.11 with ruby 1.9.2p290
>
> > I've tried to add "delayed_job". I set it up using "hobo g model 
> > delayed_job queue:string ...".
>
> On further review, this is the problem - now you've got a DelayedJob class 
> that's almost but not quite the same as Delayed::Job (the one declared by the 
> gem). They both use the same table name (delayed_jobs) and this is confusing 
> the heck out of the migration generator.
>
> If you really need to modify the Delayed::Job class, you'll need to re-open 
> it in app/models/delayed/job.rb as:
>
> class Delayed::Job < ActiveRecord::Base
>
> On the other hand, all of the custom code I needed when running delayed_job 
> stuff typically wound up in the 'work object' part rather than the job object 
> itself.
>
> --Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to